Somehow they had no idea, git certainly did though.
Somehow they had no idea, git certainly did though.
Every developer knew this though, as no editor handled this out of the box. (Vim has a simple setting to enable this, but for some reason it is not on by default)
I've encountered some very old files using LFCR instead of the more modern CRLF.
LF CR did surface briefly in the early days of PC’s, I can’t remember where, but before the days of “glass teletypes” you learned very quickly not to do that. Adding a couple of NULs to let the print head settle down was sometimes necessary if you really wanted clean print.
And I mean, why are any code editors on Windows saving with ^M endings?!
Because otherwise, when you open the file on Notepad, it shows up as a single long line (other text editors tend to be smarter and understand both kinds of line endings).
https://devblogs.microsoft.com/commandline/extended-eol-in-n...
https://devblogs.microsoft.com/commandline/extended-eol-in-n...