fix(documents): read cells beyond declared XLSX dimensions

This commit is contained in:
takiAA authored and chengyongru committed 2026-10-05 22:33:30 +08:00
1 parent 24033152c7
commit 9dc0abae4f
2 files changed
+21 -1

No files matched your search

+2
View File
@@ -253,6 +253,8 @@ def _open_xlsx_line_source(path: Path) -> DocumentLineSource:
try:
for sheet_name in workbook.sheetnames:
worksheet = workbook[sheet_name]
# Producer-supplied dimensions can omit cells that are present in the XML.
worksheet.reset_dimensions()
wrote_header = False
for row_index, row in enumerate(worksheet.iter_rows(values_only=True), 1):
row_text = "\t".join(