Skip to content

fix: RFC 4180 compliant CSV export for fields with commas/quotes (#862)#983

Open
Xenon010101 wants to merge 1 commit into
Charushi06:mainfrom
Xenon010101:fix/csv-escape-862
Open

fix: RFC 4180 compliant CSV export for fields with commas/quotes (#862)#983
Xenon010101 wants to merge 1 commit into
Charushi06:mainfrom
Xenon010101:fix/csv-escape-862

Conversation

@Xenon010101
Copy link
Copy Markdown

Fixes CSV export corruption when task titles, notes, or other fields contain commas, double quotes, or newlines.

Changes

  • Added escapeCsvField() helper implementing RFC 4180 compliance
  • Applied escaping to ALL CSV fields, not just Notes
  • Fields containing commas, double quotes, or newlines are wrapped in double quotes
  • Internal double quotes are escaped by doubling
  • Removes the ad-hoc partial escaping that only covered Notes

Closes #862

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.

bug: CSV Export is Malformed when Task Title or Notes Contain Commas, Quotes, or Newlines

1 participant