I am writing a CSV parser and I want it to comply with this standards. It states:
- Each record is located on a separate line, delimited by a line break (CRLF)
How should I handle rows ending with only CR
of LF
character? Should I treat them as literals and pass to field, interpret as a row end. Or maybe dub the file malformed?
I guess, that most flexible solution would be to accept either type of line end, but I am trying to figure out what standards say.
What do you think about it?