Preserve empty QWord tables in DOCX export
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user