JoshClose / CsvHelper

Library to help reading and writing CSV files
http://joshclose.github.io/CsvHelper/
Other
4.65k stars 1.05k forks source link

Deal with line break in quoted field during Read #2155

Closed Rob-Hague closed 6 months ago

Rob-Hague commented 1 year ago

...rather than later during field processing. When reading a line break in a quoted field with LineBreakInQuotedFieldIsBadData = true, the previous implementation consumes data indefinitely until another quote is found.

This is undesirable considering that setting LineBreakInQuotedFieldIsBadData = true implies that a line break should be considered the end of the record, which it now is.

fixes #1341, #2152