fix(documents): preserve empty PPTX table columns

This commit is contained in:
Liu Jie authored and chengyongru committed 2026-10-13 16:51:47 +08:00
1 parent 328e933d36
commit db804ef94a
2 files changed
+36 -3

No files matched your search

+2 -3
View File
@@ -574,9 +574,8 @@ def _collect_pptx_shape_text(shape: Any, out: list[str]) -> None:
if getattr(shape, "has_table", False):
for row in shape.table.rows:
cells = [cell.text.strip() for cell in row.cells]
line = "\t".join(cell for cell in cells if cell)
if line:
out.append(line)
if any(cells):
out.append("\t".join(cells))
return
text = getattr(shape, "text", "")