Preserve empty QWord tables in DOCX export

This commit is contained in:
Курнат Андрей
2026-06-02 09:06:22 +03:00
parent a9f9aa6cca
commit e5537b726e
2 changed files with 28 additions and 5 deletions
+1 -5
View File
@@ -647,11 +647,7 @@ function parseHtmlFragment(html: string) {
function tableRows(table: Element) {
return Array.from(table.querySelectorAll("tr"))
.map((row) =>
Array.from(row.querySelectorAll("th,td"))
.map(elementText)
.filter((cell) => cell.length > 0)
)
.map((row) => Array.from(row.querySelectorAll("th,td")).map(elementText))
.filter((row) => row.length > 0);
}