(original issue: FasterXML/jackson-dataformat-csv#19 by @tomdz)
When parsing a CSV file like:
"foo", "bar", "baz"
"baz", "foo", "bar"
the CSV parser will get confused and give me back exactly two values:
and
(note the leading space here).
According to RFC 4180, these spaces should be considered to be part of the value, e.g. it should return 'foo', ' bar',' baz', and 'baz', ' foo', ' bar'.
Alternatively - maybe via a feature - it could trim the whitespace outside of quoted strings, e.g. 'foo', 'bar','baz', and 'baz', 'foo', 'bar'.
(original issue: FasterXML/jackson-dataformat-csv#19 by @tomdz)
When parsing a CSV file like:
the CSV parser will get confused and give me back exactly two values:
and
(note the leading space here).
According to RFC 4180, these spaces should be considered to be part of the value, e.g. it should return
'foo',' bar',' baz', and'baz',' foo',' bar'.Alternatively - maybe via a feature - it could trim the whitespace outside of quoted strings, e.g.
'foo','bar','baz', and'baz','foo','bar'.