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
console.errorODSnumberformatmay be incorrect: value()<040|// Set the filename of the file for an import session.41|exports.SessionSetFile=(sid,filename)=>{>42|constwb=xlsx.readFile(filename,{dense: true,cellStyles: true});|^43|44|letsession={45|filename: filename,atparse_ods_styles(node_modules/xlsx/xlsx.js:22883:17)atparse_ods(node_modules/xlsx/xlsx.js:23457:25)atparse_zip(node_modules/xlsx/xlsx.js:26352:58)atread_zip(node_modules/xlsx/xlsx.js:26919:9)atreadSync(node_modules/xlsx/xlsx.js:26997:69)atObject.readFileSync(node_modules/xlsx/xlsx.js:27025:9)atObject.readFile[asSessionSetFile](backend.js:42:19)atObject.SessionSetFile(backend.test.js:360:13)
This is described at SheetJS/sheetjs#1569 and so there may be a solution there somewhere
case'map': // <style:map> 16.3// TODO: handle more complex mapsy=parsexmltag(Rn[0],false);if(unescapexml(y["condition"])=="value()>=0")NF=number_format_map[y["apply-style-name"]]+";"+NF;elseconsole.error("ODS number format may be incorrect: "+y["condition"]);break;
The ODS file we are testing with has this within the number style
which suggests the parser is supposed to evaluate the condition and then apply the referenced style. The code in sheetjs seems to misinterpret the meaning of this tag.
They fail with
This is described at SheetJS/sheetjs#1569 and so there may be a solution there somewhere
The actual responsible code is at https://github.com/SheetJS/sheetjs/blob/08f5678c9881efbe0dd7b482cb7df4a72843fba8/bits/80_parseods.js#L222-L223
The text was updated successfully, but these errors were encountered: