Skip to content

fixes auto-quote not quoting cells containing quote characters#205

Open
MarkLee131 wants to merge 1 commit intod99kris:masterfrom
MarkLee131:fix/autoquote-missing-quotechar-check
Open

fixes auto-quote not quoting cells containing quote characters#205
MarkLee131 wants to merge 1 commit intod99kris:masterfrom
MarkLee131:fix/autoquote-missing-quotechar-check

Conversation

@MarkLee131
Copy link
Copy Markdown

Fix #204:

WriteCsv auto-quote logic checks for separator, space and newline in cell content, but does not check for the quote character itself. This causes cells containing quotes (but no separator/space/newline) to be written unquoted and unescaped, producing malformed CSV output that corrupts data on re-read.

Add quote character to the auto-quote condition and add test104 to verify round-trip integrity for cells containing quote characters.

WriteCsv auto-quote logic checks for separator, space and newline
in cell content, but does not check for the quote character itself.
This causes cells containing quotes (but no separator/space/newline)
to be written unquoted and unescaped, producing malformed CSV output
that corrupts data on re-read.

Add quote character to the auto-quote condition and add test104 to
verify round-trip integrity for cells containing quote characters.
@d99kris d99kris self-assigned this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WriteCsv auto-quote does not quote cells containing the quote character

2 participants