diff options
| author | Edwin Török <[email protected]> | 2023-12-17 15:48:38 +0000 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-12-17 10:07:10 -0800 |
| commit | 39b59af8c98787de8dbe897f602dedf7a9d2ee0b (patch) | |
| tree | e321f9fc3a3931b86274f74041aacc29b9bf9a6c /data | |
| parent | 6a06f6f6085fed4b2954a673b3369910c68c44ac (diff) | |
reference.docx: fix validation error on spacing
```
./tmp/styles-pretty.xml:111: element spacing: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}spacing': This element is not expected. Expected is one of ( {http://schemas.openxmlformats.org/wordprocessingml/2006/main}textDirection, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}textAlignment, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}textboxTightWrap, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}outlineLvl, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}divId, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}cnfStyle, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}pPrChange ).
```
According to `wml.xsd` `spacing` must be placed before `jc`:
```
<xsd:sequence>
<xsd:element name="spacing" type="CT_Spacing" minOccurs="0"/>
[...]
<xsd:element name="jc" type="CT_Jc" minOccurs="0"/>
```
Signed-off-by: Edwin Török <[email protected]>
Diffstat (limited to 'data')
| -rw-r--r-- | data/docx/word/styles.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/docx/word/styles.xml b/data/docx/word/styles.xml index 7d01dda2e..1d6e7a053 100644 --- a/data/docx/word/styles.xml +++ b/data/docx/word/styles.xml @@ -107,8 +107,8 @@ <w:pPr> <w:keepNext /> <w:keepLines /> - <w:jc w:val="center" /> <w:spacing w:before="300" w:after="0" /> + <w:jc w:val="center" /> </w:pPr> <w:rPr> <w:sz w:val="20" /> |
