I noticed a repository’s .gitattributes
entry for *.csv
used text eol=crlf
so I investigated and found this.
You must log in or register to comment.
We want to move down to the next line (line feed) but also to the beginning of that line (carriage return) after all.
I hate that the pleasant news about standardization of CSV come with the let-down that is using two bytes for new lines.
Don’t worry, it’s not really standardised despite this attempt. You can use UNIX line endings and nothing bad will happen.
Unless you open it in Excel. In which case bad things will happen no matter what you have in the CSV…
If I am using Excel, I am using Windows and I will be changing all text to use CR-LF newline format (if sending from a Linux system) anyway.