Fix QA DOCX table parser dropping cells between repeated text (#17497)

This commit is contained in:
Yash Raj Pandey
2026-07-29 05:18:54 -04:00
committed by GitHub
parent 26f0dc234e
commit 33bfc11fa4

View File

@@ -229,6 +229,8 @@ class Docx(DocxParser):
if c.text == r.cells[j].text:
span += 1
i = j
else:
break
i += 1
html += f"<td>{c.text}</td>" if span == 1 else f"<td colspan='{span}'>{c.text}</td>"
html += "</tr>"