gridcraft/crates
Vedran Dobos b13ea3e2f3 CSV: saving keeps the separator the file was opened with (#426)
A `;`-separated CSV (the usual CSV where `,` is the decimal separator) was
rewritten with `,` on save: read_csv sniffed the delimiter but the result was
dropped, and save_bytes passed a hard-coded b','. file.save, Save As .csv,
file.exportCsv, file.saveBytes and gridcraft-cli convert all went through it.

The workbook now remembers the separator it was read with
(Workbook::csv_delimiter, set by read_csv) and a CSV save writes it back.
Workbooks not read from CSV, and .tsv/.txt sources saved as .csv, keep `,`.

Regression tests: `;`, `,` and tab .csv round trips byte for byte, new and
.xlsx-origin workbooks save with `,`, and open-by-path + edit + file.save on a
`;` file keeps `;` (also through exportCsv and saveBytes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 23:46:27 -07:00
..
calc XLOOKUP reference path: an empty match_mode keeps the search_mode after it (review fix-up for #396) 2026-10-11 15:49:32 -04:00
chart Charts: PivotCharts (insert.pivotChart) (#311) 2026-10-11 12:31:49 +02:00
core Merge pull request #216 from MarekSpodBiedry/issue-202 2026-10-11 12:46:33 -04:00
engine CSV: saving keeps the separator the file was opened with (#426) 2026-10-11 23:46:27 -07:00
formula Merge pull request #398 from nihilist-narwhal/fix-relative-names 2026-10-11 15:42:26 -04:00
functions Merge remote-tracking branch 'origin/main' into fix-325 2026-10-11 13:12:41 -04:00
mcp Merge branch 'land' into fix-206 2026-10-11 14:23:51 -04:00
model CSV: saving keeps the separator the file was opened with (#426) 2026-10-11 23:46:27 -07:00
numfmt Merge pull request #305 from vangel76/feat/cell-checkbox 2026-10-11 12:05:28 -04:00
pdf Rename SheetCraft to GridCraft everywhere (crates, apps, bundle ids, packaging, docs) 2026-10-06 01:39:08 -04:00
ui-egui Text boxes: their typefaces count as used workbook fonts, so an installed one is bound; restore image_ext's doc comment (review fix-up for #401) 2026-10-11 16:14:41 -04:00
xlsx CSV: saving keeps the separator the file was opened with (#426) 2026-10-11 23:46:27 -07:00