olivierkes / manuskript

A open-source tool for writers
http://www.theologeek.ch/manuskript
GNU General Public License v3.0
1.71k stars 226 forks source link

Fix inconsistent newline handling across operating systems #1196

Closed Dreaded-Gnu closed 7 months ago

Dreaded-Gnu commented 11 months ago

Adjusted open calls to use \n as newline for all platforms instead of guessing it. I'm not sure here whether all made changes are really necessary, but we shouldn't let python guess the newline character used for reading / writing files in non-binary mode.

Change might lead to not being able to open existing projects on windows which then need to be converted somehow.

Fixes #1169