firstRow table definition compatibility for Word 2016
Word 2016 seems to use a default value of "1" for table headers, if there is no firstRow definition (although a default value of 0 is documented), so all tables get the first Row formatted as header. Setting the parameter to 0 if the table has no header row fixes this for Word 2016
This commit is contained in:
parent
4f43a1d250
commit
053a1dcd10
1 changed files with 1 additions and 1 deletions
|
@ -981,7 +981,7 @@ blockToOpenXML' opts (Table caption aligns widths headers rows) = do
|
|||
( mknode "w:tblPr" []
|
||||
( 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:tblLook" [("w:firstRow",if hasHeader then "1" else "0") ] () :
|
||||
[ mknode "w:tblCaption" [("w:val", captionStr)] ()
|
||||
| not (null caption) ] )
|
||||
: mknode "w:tblGrid" []
|
||||
|
|
Loading…
Add table
Reference in a new issue