rust-csv icon indicating copy to clipboard operation
rust-csv copied to clipboard

Automatically escape fields that contain the comment character

Open dae opened this issue 2 years ago • 0 comments

Currently, if data is written with QuoteStyle::Necessary, and the first field of a row happens to start with a comment character, the row will be ignored as a comment when later reading it back in.

This change adds a comment property to Writer, and automatically quotes fields that have the provided comment character in them, so they round-trip correctly.

dae avatar Jun 08 '22 08:06 dae