git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: Use Table rather than "Table Normal" for table style.

"Table Normal" is the default table style and can't be modified. Closes #3275, further testing welcome.

commit650e1ac1fdbbb172c58c1898607a7f82806cf55e authorJohn MacFarlane <jgm@berkeley.edu> dateThu 25 May 2017, 12:11 (9 years ago) parente341315
3 files changed+5−4
MANUAL.txt+1−1 data/docx/word/styles.xml+3−2 src/Text/Pandoc/Writers/Docx.hs+1−1
MANUAL.txt+1−1
@@ -880,7 +880,7 @@ Options affecting specific writers
880880 Image Caption, Figure, Captioned Figure, TOC Heading;
881881 [character] Default Paragraph Font, Body Text Char,
882882 Verbatim Char, Footnote Reference, Hyperlink; [table]
883− Normal Table.
883+ Table.
884884
885885 ODT
886886
data/docx/word/styles.xml+3−2
@@ -342,8 +342,9 @@
342342 <w:semiHidden />
343343 <w:unhideWhenUsed />
344344 </w:style>
345− <w:style w:type="table" w:default="1" w:styleId="TableNormal">
346− <w:name w:val="Normal Table" />
345+ <w:style w:type="table" w:default="1" w:styleId="Table">
346+ <w:name w:val="Table" />
347+ <w:basedOn w:val="TableNormal" />
347348 <w:semiHidden />
348349 <w:unhideWhenUsed />
349350 <w:qFormat />
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -953,7 +953,7 @@ blockToOpenXML' opts (Table caption aligns widths headers rows) = do
953953 caption' ++
954954 [mknode "w:tbl" []
955955 ( mknode "w:tblPr" []
956− ( mknode "w:tblStyle" [("w:val","TableNormal")] () :
956+ ( mknode "w:tblStyle" [("w:val","Table")] () :
957957 mknode "w:tblW" [("w:type", "pct"), ("w:w", show rowwidth)] () :
958958 mknode "w:tblLook" [("w:firstRow","1") | hasHeader ] () :
959959 [ mknode "w:tblCaption" [("w:val", captionStr)] ()