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.