Error with tables
Created originally on Bitbucket by bpiwowar
Hi
There is a bug introduced in version 2.4.10 with tables. I just copied the sample code in http://openpyxl.readthedocs.io/en/latest/worksheet_tables.html
:
- with version 2.4.9, this works
- with version 2.4.10 (and above - tested with 2.5.0b2), the file is corrupted
With a diff (I removed the part where just the timestamp was different) between both generated files, this gives
diff -r table-2.4.9/xl/worksheets/_rels/sheet1.xml.rels table-2.4.10/xl/worksheets/_rels/sheet1.xml.rels
1c1
< <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Target="/xl/tables/table1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" /></Relationships>
\ No newline at end of file
---
> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Target="/xl/tables/table1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" /></Relationships>
\ No newline at end of file
so it just seems that the "Type" attribute is wrong.
Attachments: table-2.4.9.xlsxtable-2.4.10.xlsx