t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Semicolon-separated CSV files show incorrect table columns

Open SouthCarpet opened this issue 2 weeks ago • 0 comments

gpt-6.1-sol on behalf of SouthCarpet

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

packages/contracts or packages/shared

Steps to reproduce

  1. Save a file named sample.csv with these two lines:

    a;b
    1;2,5
    
  2. Open the file preview in T3 Code.

  3. Select the rendered table view.

Expected behavior

Two columns. First row: a and b. Second row: 1 and 2,5.

Actual behavior

The parser returns one cell containing a;b in the first row. The second row contains 1;2 and 5.

Impact

Minor bug or occasional failure. Values can appear in incorrect columns.

Version or commit

main @ bebaf3ec04d015ad99260e9be418900f5822fcaf (also reproduced on f31ce3eeb5f4adbfe7f961403822cf90db05808f)

Environment

Windows 11. Reproduced in the desktop app (dev build of f31ce3eeb5f4adbfe7f961403822cf90db05808f, light theme) and in the shared parser with Node and Vite tests. Native mobile was not run. The same parser serves mobile file, ZIP and attachment previews.

Logs or stack traces

Focused assertion: actual [["a;b"],["1;2","5"]], expected [["a","b"],["1","2,5"]]. With the test cases of the fix, the code at this commit gives 2 failed and 17 passed.

Screenshots, recordings, or supporting files

Desktop file preview of a 5-line semicolon CSV (Product;Price;Country;Note, rows such as Coffee;2,50;Slovakia;Fresh roast and Tea;1,75;India;Green, loose leaf). The preview shows "4 rows · 3 columns". The first column holds Product;Price;Country;Note, and each row is cut at every comma (Coffee;2 | 50;Slovakia;Fresh roast). The two-line sample above is enough to reproduce it.

File preview of a semicolon-separated CSV file: three columns, each row cut at every comma

Workaround

Save the file as comma-separated CSV or tab-separated TSV before opening its preview.

SouthCarpet avatar Nov 14 '26 12:11 SouthCarpet