git.iko.soy/typeable/pandoc
on master help sign in
Add TableNormal style to tables.

Needs testing with Word.

commit7376d26c364826f2ef689f5c7040016369e0a558 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 14 Feb 2012, 17:41 (15 years ago) parent0dfd427
1 file changed+3−2
src/Text/Pandoc/Writers/Docx.hs+3−2
src/Text/Pandoc/Writers/Docx.hs+3−2
@@ -387,8 +387,9 @@ blockToOpenXML opts (Table caption aligns widths headers rows) = do
387387 return $
388388 [ mknode "w:tbl" []
389389 ( mknode "w:tblPr" []
390− [ mknode "w:tblCaption" [("w:val", captionStr)] ()
391− | not (null caption) ]
390+ ( [ mknode "w:tblStyle" [("w:val","TableNormal")] () ] ++
391+ [ mknode "w:tblCaption" [("w:val", captionStr)] ()
392+ | not (null caption) ] )
392393 : mknode "w:tblGrid" []
393394 (if all (==0) widths
394395 then []