We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the CSV input contains line breaks inside quoted fields, like so:
c1,c2 foo,"bar baz"
the parser drops the interior line breaks, yielding
{ 'c1': 'foo', 'c2': 'barbaz' }
rather than the expected
{ 'c1': 'foo', 'c2': 'bar\r\nbaz' }
That's with Python 2.7.6, REST Framework 2.4.3, and Django 1.5.8 on Linux.
I was able to fix this by changing splitlines() to splitlines(True) in parsers.py.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When the CSV input contains line breaks inside quoted fields, like so:
c1,c2
foo,"bar
baz"
the parser drops the interior line breaks, yielding
{ 'c1': 'foo', 'c2': 'barbaz' }
rather than the expected
{ 'c1': 'foo', 'c2': 'bar\r\nbaz' }
That's with Python 2.7.6, REST Framework 2.4.3, and Django 1.5.8 on
Linux.
I was able to fix this by changing splitlines() to splitlines(True) in
parsers.py.
The text was updated successfully, but these errors were encountered: