Skip to content
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

Fails to parse multiline CSV #7

Closed
jpmckinney opened this issue Nov 9, 2014 · 1 comment
Closed

Fails to parse multiline CSV #7

jpmckinney opened this issue Nov 9, 2014 · 1 comment

Comments

@jpmckinney
Copy link

multiline.csv

foo,"bar
baz",bzz

Expected output

CSV.foreach('multiline.csv').to_a  # [["foo", "bar\nbaz", "bzz"]]

Actual output

rows = []
Ccsv.foreach(filename) {|row| rows << row}
rows  # [["foo", "\"bar"], ["baz\"", "bzz"]]
@jpmckinney jpmckinney changed the title Fails on multiline CSV Fails to parse multiline CSV Nov 14, 2014
zhum added a commit that referenced this issue Nov 20, 2014
- added empty line skipping #9
- added CRLF handling #11
@zhum
Copy link
Collaborator

zhum commented Nov 20, 2014

fixed, not in production yet. Will be soon.

@zhum zhum closed this as completed Nov 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants