I was not sure whether this should be put in the bugs section or here, but I figured I would start here. I am working on an API script. I noticed that for some reason my code was way off to the right with lots of spaces/tabs in front of every line of code/comments. So I went through the entire (very long) file and deleted an average of 4 tabs of whitespace until everything was lined up where I wanted it. A while later I noticed that it had shifted right again! Not as far as it had been, but it had shifted! So I went in and changed a few lines of code to exactly where I want it. var Startup = function() {
'use strict';
init();
registerAPI();
};
So for example for this routine, I very carefully deleted all whitespace from the front of every line, then put one tab in front of the first and last line, and two tabs in front of the interior lines. Everything was done in the roll20 API editor (IE: I did not copy it into notepad or anywhere else then paste it back). I then saved it, exited, and reentered the editor. The code now looks like this! var Startup = function() {
'use strict';
init();
registerAPI();
};
There is now an extra tab and two spaces in front of every line! IE: the interior lines have 3 tabs and 2 spaces! What is going on here?