federomero / pretty-json

Atom plugin. Format JSON documents.
MIT License
94 stars 23 forks source link

Feature Request: Variable Line Endings #86

Open Quantumdit opened 3 years ago

Quantumdit commented 3 years ago

The prettifier will change all line endings to Unix format (\n). This can be an annoyance when the project uses Windows format line endings (\r\n), as it requires replacing the line endings every time after using the prettifier.

It would be nice if there was either an option to set the line ending, or the prettifier detected the type of line ending used in the file before running.