Each record is located on a separate line, delimited by a line
break (CRLF).
CR = %x0D ;as per section 6.1 of RFC 2234
LF = %x0A ;as per section 6.1 of RFC 2234
CRLF = CR LF ;as per section 6.1 of RFC 2234
workaround (and fix):
NimbleCSV.define(NimbleCSV.RFC4180fixed,
separator: ",",
escape: "\"",
line_separator: "\r\n",
moduledoc: """
A CSV parser that uses comma as separator and double-quotes as escape according to RFC4180.
"""
)
The spec states that the line separator must be be
\r\n
, but it's currently using the default value\n
.https://tools.ietf.org/html/rfc4180#section-2
workaround (and fix):