Docx writer: fix handling of empty table headers

A table header which does not contain any cells is now treated as an
empty header.

Fixes: #7369
This commit is contained in:
Albert Krewinkel
2021-06-10 18:36:49 +02:00
parent 55bcd4b4fb
commit c7dd33d5aa
+2 -2
View File
@@ -116,8 +116,8 @@ cellGridToOpenXML :: PandocMonad m
-> [Alignment]
-> Part
-> WS m [Element]
cellGridToOpenXML blocksToOpenXML rowType aligns part@(Part _ _ rowAttrs) =
if null (indices rowAttrs)
cellGridToOpenXML blocksToOpenXML rowType aligns part@(Part _ cellArray _) =
if null (elems cellArray)
then return mempty
else mapM (rowToOpenXML blocksToOpenXML) $
partToRows rowType aligns part