sheetjs icon indicating copy to clipboard operation
sheetjs copied to clipboard

Incorrect handling of table:number-columns-repeated in ODS

Open ziacik opened this issue 11 years ago • 5 comments

Hi. I think there may be incorrect handling of number-columns-repeated attribute in ODS files.

If I have a table where two adjacent cells have the same value, the second will not be present in Sheet object.

For example, having an ODS with A1 cell set to "A" and B1 cell set to "A" too,

console.log(require('xlsx').readFile('./Test.ods').Sheets.Sheet1);

outputs this:

{ A1: { t: 's', v: 'A', w: 'A' }, '!ref': 'A1' }

So B1 is missing there.

Version I tried this on is 0.7.12.

ziacik avatar Feb 20 '15 11:02 ziacik

@ziacik do you have a sample file so I can take a look?

SheetJSDev avatar Feb 20 '15 18:02 SheetJSDev

@SheetJSDev Sample file is at this link http://www.koliksoftware.net/Stuff/Test.ods

ziacik avatar Feb 20 '15 21:02 ziacik

What is holding this back? This bug makes this toolset unusable for parsing ODS files. The patch works for me.

JavaScriptDude avatar Feb 17 '16 16:02 JavaScriptDude

i'm facing same problem is there any solution for this?

Dineshagrawal85 avatar Apr 11 '16 08:04 Dineshagrawal85

I had to fork this locally and apply ziacik's patch. Ugly but only way to get around this without involvement of owners.

JavaScriptDude avatar Aug 07 '16 15:08 JavaScriptDude