Eve
Eve copied to clipboard
Eve changes line endings to Unix style when running on Windows
To reproduce on Windows:
- clone Eve locally
- build and run Eve
- create file in examples directory with external editor and ensure file uses Windows line endings (e.g. in Sublime Text, this is indicated on the status bar)
- in browser, refresh to see added example and choose it
- insert some text, e.g. block with multiple lines - Eve will auto-save
Result is, as seen in Sublime Text, that file switches from Windows style line endings to Unix style.
I would expect that Eve uses line endings according to the platform it's running on. Of course for files contributed to or collaborated on for the Eve project a uniform style for line endings should be used, but enforcing that is a different issue.
I forgot to mention why this was an issue for me. My example file got into a state where there was a mixture of line endings. As I edited the example in the Eve editor, I began to see some strange effects, like the cursor not being vertically aligned with where insertion was happening (and deletion of text acting wonky as a result) and error messages that didn't make sense. It wasn't clear why all this was happening until I noticed the changed line ending style in the external editor.
This is not a problem to deal with since I can start with Unix line endings to begin with, but I thought it'd be worth reporting in case someone else hits the same problem (of weird Eve editor behavior) and doesn't realize the cause.