Do you want to work on this issue?
You can request for a bounty in order to promote it!
Unify line breaks #3813
parasyte posted onGitHub
Is your feature request related to a problem? Please describe.
The JSON exporter saves *.tmj
files on macOS with "LF" \n
line breaks, as expected. On Windows, the exporter saves with "CRLF" \r\n
line breaks. This causes git to warn about spurious line break changes when saving a map that otherwise has no differences.
Describe the solution you'd like
UTF-8 and Unix line breaks are the De Facto standard for text-based files, and any text editor worth its salt can read and write these files without issue, across all platforms.
Unify line breaks when exporting text files to "LF" \n
on all platforms.
Describe alternatives you've considered
There is no alternative. Windows line breaks are ancient technology, just like UTF-16.
In seriousness, I did have some minor success by switching to the json1.dll
plugin in the Windows build. While this plugin does save JSON files with Unix line breaks, it also changes the embedded version number to "1.1" (the json.dll
plugin saves with version "1.10").
I chose to stick with the default json.dll
plugin and created this ticket to track the issue. I can always use dos2unix
if I really need to fix up the line breaks locally.