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.
This commit is contained in:
parent
e34131502a
commit
650e1ac1fd
3 changed files with 5 additions and 4 deletions
|
@ -880,7 +880,7 @@ Options affecting specific writers
|
|||
Image Caption, Figure, Captioned Figure, TOC Heading;
|
||||
[character] Default Paragraph Font, Body Text Char,
|
||||
Verbatim Char, Footnote Reference, Hyperlink; [table]
|
||||
Normal Table.
|
||||
Table.
|
||||
|
||||
ODT
|
||||
|
||||
|
|
|
@ -342,8 +342,9 @@
|
|||
<w:semiHidden />
|
||||
<w:unhideWhenUsed />
|
||||
</w:style>
|
||||
<w:style w:type="table" w:default="1" w:styleId="TableNormal">
|
||||
<w:name w:val="Normal Table" />
|
||||
<w:style w:type="table" w:default="1" w:styleId="Table">
|
||||
<w:name w:val="Table" />
|
||||
<w:basedOn w:val="TableNormal" />
|
||||
<w:semiHidden />
|
||||
<w:unhideWhenUsed />
|
||||
<w:qFormat />
|
||||
|
|
|
@ -953,7 +953,7 @@ blockToOpenXML' opts (Table caption aligns widths headers rows) = do
|
|||
caption' ++
|
||||
[mknode "w:tbl" []
|
||||
( mknode "w:tblPr" []
|
||||
( mknode "w:tblStyle" [("w:val","TableNormal")] () :
|
||||
( mknode "w:tblStyle" [("w:val","Table")] () :
|
||||
mknode "w:tblW" [("w:type", "pct"), ("w:w", show rowwidth)] () :
|
||||
mknode "w:tblLook" [("w:firstRow","1") | hasHeader ] () :
|
||||
[ mknode "w:tblCaption" [("w:val", captionStr)] ()
|
||||
|
|
Loading…
Add table
Reference in a new issue