Repository navigation
Conversation
Ignore the initial UTF-8 BOM in record and cell parsing so quoted headers retain their columns and multiline records in both previews. Keep raw protocol lines and later U+FEFF characters unchanged. Fixes thisisgm#355.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
A UTF-8 BOM could split quoted CSV or TSV headers. CSV and TSV previews keep quoted headers aligned after a UTF-8 byte-order mark (da4dac2121, v0.4.0). Thanks @AksharP5! Release. |
Brings the contributor head 585bb80 onto the integration base; the reviewed correction follows in its own commit. Co-authored-by: AksharP5 <[email protected]>
Treat the leading byte-order mark as a file prefix in CSV and TSV previews, covering quoted and multiline headers while later marks stay cell text. The QML half and protocol note of PR thisisgm#356 stay as v0.3.12 shipped them.
CSV files with a UTF-8 BOM can show values under the wrong headers in Columns preview and Quick Look. A quoted comma splits the first header into two columns; a quoted newline turns part of the header into a data row.
Skip the BOM when the backend finds record boundaries and when the frontend parses the first physical line. Raw protocol lines and U+FEFF in later windows stay intact. The same correction covers TSV and the direct-text preview.
Fixes #355.
For the issue's exact files, in both previews:
comma.csvfull"; Amount is blankmultiline.csvThe invisible BOM is omitted from the table's before values. These results were checked against the rendered Text items using the shipped preview components and real backend, with identical inputs and settings.
Validation on
f21789e5:cargo test --locked backend::codereq: 33 passed../tests/js.sh csv: 96 checks, zero failures, including retention of U+FEFF at a later window../tests/csv-preview.sh: 307 checks, zero failures.cargo build --locked, file-budget gate andgit diff --checkpass.fetch_updatedeprecation incopyread.rs, tracked by Deprecation warning: fetch_update renamed to try_update in src/backend/copyread.rs #334. All 79 finding counts are unchanged.The full repository suite and native compositor interaction were not rerun.
Summary by CodeRabbit