You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] In a multi-line CSV file, a row disappear when a line break occurs. #75
While editing a cell, when I insert a line break using Shift + Enter, the row I had been entering disappears.
After it disappears, I am able to insert a line break in that row, but the same issue occurs in subsequent rows as well—on the first line break attempt, the row always disappears.
Thanks so much for opening this issue and for the clear report.
I will reproduce this first, then implement the smallest safe fix, add/update tests, and share a PR for your review.
Thank you for your response, and I apologize for the delayed reply.
I tried running the updated version in VSCode, but unfortunately the issue has not been resolved.
After inserting a line break with Shift + Enter, the problem still occurs on the next Shift + Enter, when selecting another cell, or when saving with Ctrl + S.
I am having problems with the CSV ending up with non-full lines as well, which I believe may be due to this bug, or perhaps is an unrelated bug.
It is fairly easy to produce invalid CSV files in the editor from which it is not easy to recover. Adding new rows following a multiline cell appears to be a reliable reproducer. Notice how row 4 (D) is mangled below:
Activity
EngYOSHI commentedon Feb 11, 2026
Additional information:
This issue occurs not only when pressing Shift + Enter, but also when saving the file (Ctrl + S or via File → Save).
For example: type “aaaa”, press Shift + Enter to insert a new line, type “bbbb”, then press Ctrl + S. As a result, “bbbb” disappears.
jonaraphael commentedon Mar 1, 2026
Thanks so much for opening this issue and for the clear report.
I will reproduce this first, then implement the smallest safe fix, add/update tests, and share a PR for your review.
fix: serialize save after blur commit for multiline edit (#75)
jonaraphael commentedon Mar 1, 2026
Implemented in #77 for review: https://github.com/jonaraphael/csv/pull/77\n\nThis update ensures Ctrl/Cmd+S commits the active cell edit before save is sent, which addresses the multiline-loss path you reported.
EngYOSHI commentedon Mar 25, 2026
Thank you for your response, and I apologize for the delayed reply.
I tried running the updated version in VSCode, but unfortunately the issue has not been resolved.
After inserting a line break with Shift + Enter, the problem still occurs on the next Shift + Enter, when selecting another cell, or when saving with Ctrl + S.
JeppeKlitgaard commentedon Jul 26, 2026
I am having problems with the CSV ending up with non-full lines as well, which I believe may be due to this bug, or perhaps is an unrelated bug.
It is fairly easy to produce invalid CSV files in the editor from which it is not easy to recover. Adding new rows following a multiline cell appears to be a reliable reproducer. Notice how row 4 (
D) is mangled below: