Michael Johnson added the comment:
On input, the reader sees a line like
['one\\\n','element']
from the file iterator and successfully escapes the newline character, but
still interprets the end of the string as the end of a record. I've attached a
patch that modifies this behavior, so that encountering the end of a string
immediately after an escaped \r or \n is does not begin a new record.
----------
keywords: +patch
nosy: +mjohnson
Added file: http://bugs.python.org/file29495/csv.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15927>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com