Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[API script text editor] If the first line of a script is blank, all other lines in the script get 6 spaces placed in front of them bizzareness .

1485851209
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator
For unknown and undoubtedly bizarre reasons, if the first line of a script is a blank line such as below.  // one     var Test = (function() {     }); And you save it, exit the roll20 script editor, then reenter, you see this. // one           var Test = (function() {           });       The blank line at the top of the file is gone.  The new top line has been moved to the extreme left edge (no longer has any whitespace in front of it) And every other line in the file has had 6 spaces of whitespace added in front of it.  Needless to say, when you have thousands of lines of script lines that are migrating to the right, it is very annoying. 
1486242228
Gid
Roll20 Team
Thank you for bringing this to our attention, Chris. I've put together a bug ticket for this issue.