summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-11-18 16:47:23 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-11-18 16:47:23 +0100
commita729dd8ad35cd3b80e1abcf0ac00eea8bda69f99 (patch)
treee2d4573f20325919a5d09c320a27b6d90102133e /src/Text/Pandoc
parent9141f1fdbbebcd2ce1158121a39f4b4bcfe5c234 (diff)
Docx writer: fixed XML markup for empty cells.
Closes #3238. Previously the Compact style wasn't being applied properly to empty cells.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/Docx.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs
index b59227647..b6da3dc69 100644
--- a/src/Text/Pandoc/Writers/Docx.hs
+++ b/src/Text/Pandoc/Writers/Docx.hs
@@ -894,7 +894,7 @@ blockToOpenXML' opts (Table caption aligns widths headers rows) = do
[ mknode "w:tcBorders" []
$ mknode "w:bottom" [("w:val","single")] ()
, mknode "w:vAlign" [("w:val","bottom")] () ]
- let emptyCell = [mknode "w:p" [] [pCustomStyle "Compact"]]
+ let emptyCell = [mknode "w:p" [] [mknode "w:pPr" [] [pCustomStyle "Compact"]]]
let mkcell border contents = mknode "w:tc" []
$ [ borderProps | border ] ++
if null contents