summaryrefslogtreecommitdiff
path: root/data/docx/word
diff options
context:
space:
mode:
authorEdwin Török <edwin@etorok.net>2023-12-17 15:45:24 +0000
committerJohn MacFarlane <jgm@berkeley.edu>2023-12-17 10:07:10 -0800
commit6a06f6f6085fed4b2954a673b3369910c68c44ac (patch)
tree47da68f7a331be6aa8bd0fe71a55f6667473f5ab /data/docx/word
parentc3038dcd54152c4e18e49db31676b79ee7cc29b2 (diff)
reference.docx: fix validation error on qFormat
``` ./tmp/styles-pretty.xml:30: element qFormat: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}qFormat': This element is not expected. Expected is one of ( {http://schemas.openxmlformats.org/wordprocessingml/2006/main}rPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}trPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}tcPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblStylePr ). ``` According to `wml.xsd` it must come before `pPr`: ``` <xsd:complexType name="CT_Style"> <xsd:sequence> [...] <xsd:element name="qFormat" type="CT_OnOff" minOccurs="0"/> [...] <xsd:element name="pPr" type="CT_PPrGeneral" minOccurs="0" maxOccurs="1"/> ``` Signed-off-by: Edwin Török <edwin@etorok.net>
Diffstat (limited to 'data/docx/word')
-rw-r--r--data/docx/word/styles.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/docx/word/styles.xml b/data/docx/word/styles.xml
index f219042b6..7d01dda2e 100644
--- a/data/docx/word/styles.xml
+++ b/data/docx/word/styles.xml
@@ -24,10 +24,10 @@
<w:name w:val="Body Text" />
<w:basedOn w:val="Normal" />
<w:link w:val="BodyTextChar" />
+ <w:qFormat />
<w:pPr>
<w:spacing w:before="180" w:after="180" />
</w:pPr>
- <w:qFormat />
</w:style>
<w:style w:type="paragraph" w:customStyle="1" w:styleId="FirstParagraph">
<w:name w:val="First Paragraph" />