Error with tables
Issue #957
resolved
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.
Comments (4)
-
-
- changed status to resolved
Add a test for the relationship type set for tables. Fixes
#957→ <<cset 577456078184>>
-
- removed component
Removing component: writer (automated comment)
-
- removed version
Removing version: 2.4.x (automated comment)
- Log in to comment
Thanks for the report. That'll teach me to merge PRs without sufficient test coverage. :-(