CsvHelper icon indicating copy to clipboard operation
CsvHelper copied to clipboard

Allow trimming of all characters inside quotes

Open JoshClose opened this issue 4 years ago • 0 comments

Currently the escape, quote, delimiter, and line ending characters are not allowed as whitespace characters. Theoretically these characters could be trimmed only inside of quotes.

Instead of throw an exception when those characters are set a whitespace, create 2 lists of whitespace characters to trim. An outside quote list would have these special characters removed. An inside quote list would contain all characters. It looks like the only characters allowed would be the delimiter and the line endings. Quote and escape can't be used because the field ending couldn't be detected.

JoshClose avatar Nov 24 '21 23:11 JoshClose