Closed rstrlcpy closed 7 years ago
Thanks @Ramzec ! Great catch. Rather than take this PR directly, I'll make the change to the relevant file in /bits/*.js
and recompile.
@pietersv did your change get merged in? I'm using v0.8.13 and I'm having a similar issue where cells of type s with no value defined cause the sheet to not be parsed.
This issue is especially troublesome when using a tool like https://github.com/tealeg/xlsx to generate xlsx files that are later parsed by js-xlsx.
bits/67_wsxml.js
0.8.16
make
and make dist
so that it regenerates xlsx.js
on the root and dist/xlsx*.js
master
branch. npm install xlsx-style
Hello.
I'm trying to parse a XLSX file, but the parser does not parse sheet's data. I see workbook, i see sheet's name, but 'sheets' field is empty.
I did a research and found that 'parse_ws_xml_data' generates exception:
exception on line 7495, because sstr is undefined, because 'p' contains only 't'.
I did a research of my file the cell (A1) that is causes exception has the following structure:
I tried to open the file by LibreOffice. Everything good. A1 cell does not contains anything.
I saved the opened file to other file. The new file was successfully parsed.
The first row in the new file does not have A1 cell.
The fix helps.