git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: fixed XML markup for empty cells.

Closes #3238. Previously the Compact style wasn't being applied properly to empty cells.

commita729dd8ad35cd3b80e1abcf0ac00eea8bda69f99 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 18 Nov 2016, 16:47 (10 years ago) parent9141f1f
1 file changed+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -894,7 +894,7 @@ blockToOpenXML' opts (Table caption aligns widths headers rows) = do
894894 [ mknode "w:tcBorders" []
895895 $ mknode "w:bottom" [("w:val","single")] ()
896896 , mknode "w:vAlign" [("w:val","bottom")] () ]
897− let emptyCell = [mknode "w:p" [] [pCustomStyle "Compact"]]
897+ let emptyCell = [mknode "w:p" [] [mknode "w:pPr" [] [pCustomStyle "Compact"]]]
898898 let mkcell border contents = mknode "w:tc" []
899899 $ [ borderProps | border ] ++
900900 if null contents