This is because file body is downloaded from SF after the build - SF does some modifications like removing whitespaces, re-ordering metadata files and so on. We'd like to keep everything consistent with what is on SF and what is stored locally.
Can you please check in editor like Notepad++ with enabled display of special characters what are the line endings and what happens around the end of the file in following scenario (before steps 1, 5 and after step 5):
- build the file
- reload it when prompted
- save it
- do a minor change (add a comment?)
- build it again
Please let me know what is the result of this.
We are thinking at the moment to modify this logic by next Wednesday or make this functionality optional and disabled by default (if we won't be able to modify it to be ideal).
Please sorry for this inconvenience.