Hacker News new | ask | show | jobs
by jancsika 3290 days ago
And how do you represent line breaks?
2 comments

For most users, you press enter/return on your keyboard. A lot of text editors will detect line endings when opening a file and use that going forward.
CRLF unless your audience mostly use Mac or Linux.
It seems to me the only thing on Windows that cares about CRLF is Notepad.

Everything else works fine with just LF. A lot of new Windows software even seems to ship with LF format configuration files. Especially games, probably because it is so common to have a Windows game with Linux backend servers, so the developers are working with both.

So anyway, I'd go with just LF unless your software is Windows only.