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
Hi, I hope this is an appropriate post, it is my first one raised.
I am running python-docx 0.8.6 and python Python 3.6.1.
Attached is a simplified table that I received for analysis and although it looked like a simple table there were some merged cells at the end of some of the rows: MergedCells.docx
When I investigated the row's cells and then the columns' cells I found that they were wrong at the bottom of the table (bold below):
It looks like rows and columns have been created and then cells have been dropped into each space in turn reading left to right then top down. This means that when a row has fewer cells than the column count then the next row's cells are added to this shorter row. 'R%' is the first example in the table above.
#232 shows a solution for this issue: _tc.top, bottom, left, right give correct values when iterating through the table's cells.
I'm putting up this issue to ask whether the rows' and columns' will be corrected?
The text was updated successfully, but these errors were encountered:
Hi, I hope this is an appropriate post, it is my first one raised.
I am running python-docx 0.8.6 and python Python 3.6.1.
Attached is a simplified table that I received for analysis and although it looked like a simple table there were some merged cells at the end of some of the rows:
MergedCells.docx
When I investigated the row's cells and then the columns' cells I found that they were wrong at the bottom of the table (bold below):
| RowHeaders | Column1 | Column2 | Column2
0|R1 | R1C1 | R1C2 | R1C2
1|R2 | R2C1 | R2C2 | R2C2
2|R3 | R3C1 | R3C2 | R3C2
3|R4 | R4C1 | R4C2 | R5
4|R5C1 | R5C2 | R6 | R6C1
5|R6C2 | |
It looks like rows and columns have been created and then cells have been dropped into each space in turn reading left to right then top down. This means that when a row has fewer cells than the column count then the next row's cells are added to this shorter row. 'R%' is the first example in the table above.
#232 shows a solution for this issue: _tc.top, bottom, left, right give correct values when iterating through the table's cells.
I'm putting up this issue to ask whether the rows' and columns' will be corrected?
The text was updated successfully, but these errors were encountered: