Open PhaedrusTheGreek opened 8 years ago
I don't' think there's any practical standard for what constitutes "CSV" but my rough understanding was that fields were comma-delimited and sometimes quotes were used for values. Spaces outside of values seems invalid, to me.
If I look outward a bit, what should the expected parsing result be for the following probably-not-valid-csv:
"hello" "world","foo bar"
"hello", "world"
I tested loading csv into LibreCalc with a few variants of "one","two","three"
with spaces in various places, and things seem like they are loaded successfully.
After research above, I am agreeing this is a bug. We use the Ruby standard library CSV parser for this filter, and I don't see any mechanism in the CSV library to make it work with the whitespace-filled data you provide. This means we'll probably have to find (or write) a replacement library. I have no ETA on that effort.
I have the same issue and I have no idea how to fix it
I can third this issue. Is there a workaround?
When spaces are present between quoted entries, trailing or leading the CSV data, parse failure occurs.
Seems to happen in all versions of the plugin.
Note the space before the line in the 2nd record, and the space between fields in the 3rd record