mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-19 02:22:09 +08:00
reference.docx: fix validation error on tblW
```
./tmp/document-pretty.xml:260: element tblW: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblW', attribute '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}w': '0.0' is not a valid value of the union type '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_MeasurementOrPercent'.
```
See http://officeopenxml.com/WPtableWidth.php, there is a disagreement
here between standard versions on whether a `%` is required or not when
type=`pct`, but the default is 0 when omitted, so just delete this
entry.
Signed-off-by: Edwin Török <edwin@etorok.net>
This commit is contained in:
committed by
John MacFarlane
parent
79204047a5
commit
f48fa9ac17
@@ -265,7 +265,6 @@ Table caption.
|
||||
<w:tbl>
|
||||
<w:tblPr>
|
||||
<w:tblStyle w:val="Table" />
|
||||
<w:tblW w:type="pct" w:w="0.0" />
|
||||
<w:tblLook w:firstRow="1" />
|
||||
<w:tblCaption w:val="Table caption." />
|
||||
</w:tblPr>
|
||||
|
||||
Reference in New Issue
Block a user