Skip to content

Commit 39ece5d

Browse files
fix: codefactor warning.
1 parent 3490271 commit 39ece5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/inscriptis/model/table.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,14 @@ def get_annotations(self, idx: int,
263263
for row in self.rows:
264264
if not row.columns:
265265
continue
266+
266267
row_width = row.width + left_margin_len
268+
row_height = row.columns[0].height
267269
cell_idx = idx
268270
for cell in row.columns:
269271
annotations += cell.get_annotations(cell_idx, row_width)
270272
cell_idx += cell.width + len(row.cell_separator)
271273

272-
idx += (row_width + 1) * cell.height # linebreak
274+
idx += (row_width + 1) * row_height # linebreak
273275

274276
return annotations

0 commit comments

Comments
 (0)