Commit faff935
fix(docx): handle tables with merged cells causing IndexError (#2813)
* fix(docx): handle tables with merged cells causing IndexError
When parsing tables with merged cells, the number of cells in a row
can be less than the total number of columns. The code was iterating
up to num_cols and accessing row.cells[col_idx], which caused
IndexError when col_idx exceeded the actual number of cells in the row.
Added bounds check before accessing row.cells to handle merged cell rows.
* DCO Remediation Commit for Maxym Tushkov <maxym.nc@gmail.com>
I, Maxym Tushkov <maxym.nc@gmail.com>, hereby add my Signed-off-by to this commit: 144047a
Signed-off-by: Maxym Tushkov <maxym.nc@gmail.com>
---------
Signed-off-by: Maxym Tushkov <maxym.nc@gmail.com>
Co-authored-by: Maxym Tushkov <maxym.nc@gmail.com>1 parent be085c0 commit faff935
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1354 | 1357 | | |
1355 | 1358 | | |
1356 | 1359 | | |
| |||
0 commit comments