Comments in empty cells lost when reading XLS files #1567
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1567
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am writing a tool that abstracts data stored in cell notes by an Excel add-in. I have found a problem where xlsx does not create the cell objects for cells with notes that have no data. This is only a problem for files saved as XLS. For XLSX there appears to be an empty string data entry for the cell that causes the object to be created.
Would it possible to fix this, so when reading note entries, if the cell object does not exist one is created instead of throwing away the note data?
Attached a very simple example where Sheet1!A1 contains note but no cell data.
test.zip
yeah the fix is fairly straightforward:
This should be applied to
bits/76_xls.js
starting around line 534. After building, it will apply toxlsx.js
at about line 16874 andxlsx.flow.js
at around 16988. Feel free to make the change and submit a PR.I just tested against the latest version and can confirm my problem is now fixed. Thanks for getting the fix out so quickly.