sheetjs drop rows when there are blank rows in .numbers files #3009
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#3009
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Hi, team
there is big issue when I reading a .numbers with blank rows, sheetjs drops nearly half of the rows
here is the code
` for (let sheetName of workbook.SheetNames) {
// var csv = XLSX.utils.sheet_to_csv(workbook.Sheets[sheetName]);
// await Bun.write("./tools/testExportCSV.csv",csv)
const jsonData = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName], {
header: 1,
blankrows: false,
raw: false
});
}
`
there should be 5853 available , but actually I got 2973
Thanks for sharing! We'll take a closer look. Do you know what program last touched the file (e.g. icloud.com web interface, Apple Numbers on the desktop, Apple Numbers for Mac)? Also, just to confirm, are you expecting alternating rows of data? It looks like the even rows are blank in Numbers 13.1
yes , I edit the file on mac numbers. No , I don't want the blank rows . I receive this file from client , and I hope to speed up my processing using javascript. so I wrote a program. I have many of them , so it is not practical to correct the file one by one
so , I am counting on you ,bro. can you unveil when it could be fixed
any update on this , thanks
Hi, seems that the issue has been fixed , but why I still got error result. when shall I use the fixed version of sheetjs
We have to make a new release. If you want a tarball now, join the chat and we can make a pre-release package available for you.