-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whitespace causes parse failure with "Illegal quoting in line" error #44
Comments
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:
|
I tested loading csv into LibreCalc with a few variants of |
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? |
The original spec (RF-4180) from 2005 doesn't mention what to do with this case, but a draft case of 2016 or so suggests we just trim any leading/trailing white-spaces outside a quote segment. @jordansissel can this get a fix now in that direction? |
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
The text was updated successfully, but these errors were encountered: