Skip to content

Commit f8d9306

Browse files
committed
be more explicit
1 parent 2f484ba commit f8d9306

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ebddocx2table/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ def get_ebd_docx_tables(docx_file_path: Path, ebd_key: str) -> List[Table]:
7373
tables.append(table)
7474
# Now we have to check if the EBD table spans multiple pages and _maybe_ we have to collect more tables.
7575
# The funny thing is: Sometimes the authors create multiple tables split over multiple lines which belong
76-
# together, sometimes they create 1 proper table that spans multiple pages. This we won't notice here.
76+
# together, sometimes they create 1 proper table that spans multiple pages.
77+
# The latter case (1 docx table spanning >1 pages) is transparent to the extraction logic; i.e. python-docx
78+
# treats a single table that spans multiple pages just the same as a table on only 1 page.
7779
for next_item in tables_and_paragraphs: # start iterating from where the outer loop paused
7880
if isinstance(next_item, Table):
7981
# this is the case that the authors created multiple single tables on single adjacent pages

0 commit comments

Comments
 (0)