Skip to content

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

Merged
d99kris merged 1 commit into
d99kris:dev/integrate-auto-quote-fixfrom
MarkLee131:fix/autoquote-missing-quotechar-check
Apr 4, 2026
Merged

fixes auto-quote not quoting cells containing quote characters#205
d99kris merged 1 commit into
d99kris:dev/integrate-auto-quote-fixfrom
MarkLee131:fix/autoquote-missing-quotechar-check

Conversation

@MarkLee131
Copy link
Copy Markdown
Contributor

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
@d99kris
Copy link
Copy Markdown
Owner

d99kris commented Apr 4, 2026

Thanks for contributing! Generally the patch looks good. I'll merge your fix into an integration branch and make some minor adjustments there.

@d99kris d99kris changed the base branch from master to dev/integrate-auto-quote-fix April 4, 2026 05:42
@d99kris d99kris merged commit 2c3b665 into d99kris:dev/integrate-auto-quote-fix Apr 4, 2026
3 checks passed
@d99kris
Copy link
Copy Markdown
Owner

d99kris commented Apr 4, 2026

This fix has been integrated to master in 7528d7c.

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