csv2 icon indicating copy to clipboard operation
csv2 copied to clipboard

Deal with Windows line endings

Open SuperWig opened this issue 5 years ago • 3 comments

Figured the example in the readme should work out of the box and not have to use a custom trim_characters

SuperWig avatar Jun 06 '20 16:06 SuperWig

How did you deal with "\r\n"? There seems to be a trailing '\r' when reading windows file.

zhouw avatar Feb 01 '21 15:02 zhouw

i have a wraper this csv project https://github.com/huangshangbin/Csv

huangshangbin avatar Apr 15 '21 06:04 huangshangbin

Suggest you upgrade parameters.hpp #35 to fix, like this:

using trim_whitespace = trim_policy::trim_characters<' ', '\t', '\r', '\n'>

softhorizons avatar Sep 23 '21 22:09 softhorizons