Skip to content

fix(export): quote every CSV field and neutralise formulas - #238

Merged
skjnldsv merged 1 commit into
mainfrom
fix/csv-formula-cells
Nov 17, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/csv-formula-cells

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

The export only checked a field's first character for a formula. Every field is now quoted, and any cell starting with =, +, -, @, tab or CR (also after leading spaces or quotes) gets a leading '. Negative numbers stay numbers.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

The CSV export only looked at the first character of a field for a formula
trigger, and quoted a field only when it had to. A value with leading
spaces or quotes before `=` was written unchanged.

Every field is now quoted, and a text cell that starts with `=`, `+`, `-`,
`@`, a tab or a carriage return, also after leading spaces or quotes, gets
a leading apostrophe. Numbers stay numbers.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv added 3. to review Waiting for reviews bug Something isn't working AI assisted This PR contains AI-assisted commits labels Nov 17, 2026
@skjnldsv skjnldsv self-assigned this Nov 17, 2026
@skjnldsv
skjnldsv merged commit 59a56b1 into main Nov 17, 2026
48 checks passed
@skjnldsv
skjnldsv deleted the fix/csv-formula-cells branch November 17, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted This PR contains AI-assisted commits bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant