When updating a version, the line endings are not preserved and transformed to the current os line endings. This is rather problematic as when on Linux or Mac I do not want to convert certain Windows scripts line endings to LF, and reciprocally when I am on Windows.
In addition, on windows, extra lines are added to the updated files, including throwing in extra CR which makes the files rather damaged and unusable after a bump.
So IMHO:
- Line ending should be preserved to what they are and never converted to something else.
- new lines should not be added
Some candidate culprit code bits include any place where splitlines, or r/l/strip is used