mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user