Update tests
This commit is contained in:
@@ -126,7 +126,7 @@ class nwStyles:
|
||||
"TT": (0.00, 0.60), # Text margins (top, bottom)
|
||||
"SP": (1.20, 1.20), # Separator margins (top, bottom)
|
||||
"MT": (0.00, 0.60), # Meta margins (top, bottom)
|
||||
"FT": (1.20, 0.40), # Footnote margins (left, bottom)
|
||||
"FT": (1.40, 0.40), # Footnote margins (left, bottom)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1166,6 +1166,7 @@ class DocXParagraph:
|
||||
_wTag("before"): str(int(20.0 * firstFloat(self._topMargin, style.before))),
|
||||
_wTag("after"): str(int(20.0 * firstFloat(self._bottomMargin, style.after))),
|
||||
_wTag("line"): str(int(20.0 * firstFloat(style.line, style.size))),
|
||||
_wTag("lineRule"): "auto",
|
||||
})
|
||||
if indent:
|
||||
xmlSubElem(pPr, _wTag("ind"), attrib=indent)
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -254,7 +254,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -277,7 +277,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -331,7 +331,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -354,7 +354,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -377,7 +377,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -472,7 +472,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -495,7 +495,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -518,7 +518,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -634,7 +634,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -657,7 +657,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -680,7 +680,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -734,7 +734,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -757,7 +757,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -780,7 +780,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -875,7 +875,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -898,7 +898,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -921,7 +921,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -1035,7 +1035,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -1058,7 +1058,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -1081,7 +1081,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -1197,7 +1197,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
@@ -1230,7 +1230,7 @@
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="MetaText" />
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<w:style w:type="paragraph" w:styleId="Normal" w:default="1">
|
||||
<w:name w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
<w:jc w:val="left" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
@@ -31,7 +31,7 @@
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:next w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="340" w:after="120" w:line="690" />
|
||||
<w:spacing w:before="360" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
<w:outlineLvl w:val="0" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
@@ -45,7 +45,7 @@
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:next w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="340" w:after="120" w:line="552" />
|
||||
<w:spacing w:before="360" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
<w:outlineLvl w:val="0" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
@@ -60,7 +60,7 @@
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:next w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="400" w:after="120" w:line="483" />
|
||||
<w:spacing w:before="360" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
<w:outlineLvl w:val="1" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
@@ -75,7 +75,7 @@
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:next w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="280" w:after="120" w:line="414" />
|
||||
<w:spacing w:before="288" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
<w:outlineLvl w:val="1" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
@@ -90,7 +90,7 @@
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:next w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="280" w:after="120" w:line="345" />
|
||||
<w:spacing w:before="288" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
<w:outlineLvl w:val="1" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
@@ -105,7 +105,7 @@
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:next w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="280" w:after="280" w:line="276" />
|
||||
<w:spacing w:before="288" w:after="288" w:line="276" w:lineRule="auto" />
|
||||
<w:jc w:val="center" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
@@ -118,7 +118,7 @@
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:next w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="0" w:after="139" w:line="276" />
|
||||
<w:spacing w:before="0" w:after="144" w:line="276" w:lineRule="auto" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<w:sz w:val="24" />
|
||||
@@ -129,7 +129,7 @@
|
||||
<w:name w:val="Header" />
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="0" w:after="0" w:line="240" />
|
||||
<w:spacing w:before="0" w:after="0" w:line="240" w:lineRule="auto" />
|
||||
<w:jc w:val="right" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
@@ -141,8 +141,8 @@
|
||||
<w:name w:val="Footnote Text" />
|
||||
<w:basedOn w:val="Normal" />
|
||||
<w:pPr>
|
||||
<w:spacing w:before="0" w:after="90" w:line="220" />
|
||||
<w:ind w:left="272" />
|
||||
<w:spacing w:before="0" w:after="96" w:line="276" w:lineRule="auto" />
|
||||
<w:ind w:left="335" />
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<w:sz w:val="19" />
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<office:document xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.3" office:mimetype="application/vnd.oasis.opendocument.text">
|
||||
<office:meta>
|
||||
<meta:creation-date>2024-10-29T23:24:19</meta:creation-date>
|
||||
<meta:generator>novelWriter/2.6a3</meta:generator>
|
||||
<meta:creation-date>2024-11-13T20:28:36</meta:creation-date>
|
||||
<meta:generator>novelWriter/2.6b1</meta:generator>
|
||||
<meta:initial-creator>Jane Smith</meta:initial-creator>
|
||||
<meta:editing-cycles>1234</meta:editing-cycles>
|
||||
<meta:editing-duration>P42DT12H34M56S</meta:editing-duration>
|
||||
<dc:title>Test Project</dc:title>
|
||||
<dc:date>2024-10-29T23:24:19</dc:date>
|
||||
<dc:date>2024-11-13T20:28:36</dc:date>
|
||||
<dc:creator>Jane Smith</dc:creator>
|
||||
</office:meta>
|
||||
<office:font-face-decls>
|
||||
@@ -22,7 +22,7 @@
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-weight="normal" fo:font-style="normal" fo:font-size="12pt" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.495cm" fo:margin-bottom="0.212cm" fo:keep-with-next="always" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" fo:keep-with-next="always" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-weight="normal" fo:font-style="normal" fo:font-size="15pt" />
|
||||
</style:style>
|
||||
<style:style style:name="Header_20_and_20_Footer" style:display-name="Header and Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra" />
|
||||
@@ -30,45 +30,45 @@
|
||||
<number:number number:min-integer-digits="1" />
|
||||
</number:number-style>
|
||||
<style:style style:name="Text_20_body" style:family="paragraph" style:display-name="Text body" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.246cm" fo:line-height="115%" fo:text-align="left" />
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.254cm" fo:line-height="115%" fo:text-align="left" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="First_20_line_20_indent" style:family="paragraph" style:display-name="First line indent" style:parent-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:text-indent="0.593cm" />
|
||||
</style:style>
|
||||
<style:style style:name="Text_20_Meta" style:family="paragraph" style:display-name="Text Meta" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.246cm" fo:line-height="115%" />
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.254cm" fo:line-height="115%" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="Title" style:family="paragraph" style:display-name="Title" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="chapter">
|
||||
<style:paragraph-properties fo:margin-top="0.601cm" fo:margin-bottom="0.212cm" fo:text-align="center" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" fo:text-align="center" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="30pt" fo:font-weight="bold" />
|
||||
</style:style>
|
||||
<style:style style:name="Separator" style:family="paragraph" style:display-name="Separator" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.495cm" fo:margin-bottom="0.495cm" fo:line-height="115%" fo:text-align="center" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.508cm" fo:line-height="115%" fo:text-align="center" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_1" style:family="paragraph" style:display-name="Heading 1" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="1" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.601cm" fo:margin-bottom="0.212cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="24pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_2" style:family="paragraph" style:display-name="Heading 2" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="2" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.707cm" fo:margin-bottom="0.212cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="21pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_3" style:family="paragraph" style:display-name="Heading 3" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="3" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.495cm" fo:margin-bottom="0.212cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="18pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_4" style:family="paragraph" style:display-name="Heading 4" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="4" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.495cm" fo:margin-bottom="0.212cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="15pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Header" style:family="paragraph" style:display-name="Header" style:parent-style-name="Header_20_and_20_Footer">
|
||||
<style:paragraph-properties fo:text-align="right" />
|
||||
</style:style>
|
||||
<style:style style:name="Footnote" style:family="paragraph" style:display-name="Footnote" style:parent-style-name="Standard" style:class="extra">
|
||||
<style:paragraph-properties fo:margin-bottom="0.199cm" fo:margin-left="0.601cm" fo:text-indent="-0.601cm" />
|
||||
<style:paragraph-properties fo:margin-bottom="0.169cm" fo:margin-left="0.593cm" fo:text-indent="-0.593cm" />
|
||||
<style:text-properties fo:font-size="10pt" />
|
||||
</style:style>
|
||||
</office:styles>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-weight="normal" fo:font-style="normal" fo:font-size="12pt" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.495cm" fo:margin-bottom="0.212cm" fo:keep-with-next="always" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" fo:keep-with-next="always" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-weight="normal" fo:font-style="normal" fo:font-size="15pt" />
|
||||
</style:style>
|
||||
<style:style style:name="Header_20_and_20_Footer" style:display-name="Header and Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra" />
|
||||
@@ -20,45 +20,45 @@
|
||||
<number:number number:min-integer-digits="1" />
|
||||
</number:number-style>
|
||||
<style:style style:name="Text_20_body" style:family="paragraph" style:display-name="Text body" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.246cm" fo:line-height="115%" fo:text-align="left" />
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.254cm" fo:line-height="115%" fo:text-align="left" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="First_20_line_20_indent" style:family="paragraph" style:display-name="First line indent" style:parent-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:text-indent="0.593cm" />
|
||||
</style:style>
|
||||
<style:style style:name="Text_20_Meta" style:family="paragraph" style:display-name="Text Meta" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.246cm" fo:line-height="115%" />
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.254cm" fo:line-height="115%" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="Title" style:family="paragraph" style:display-name="Title" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="chapter">
|
||||
<style:paragraph-properties fo:margin-top="0.601cm" fo:margin-bottom="0.212cm" fo:text-align="center" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" fo:text-align="center" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="30pt" fo:font-weight="bold" />
|
||||
</style:style>
|
||||
<style:style style:name="Separator" style:family="paragraph" style:display-name="Separator" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.495cm" fo:margin-bottom="0.495cm" fo:line-height="115%" fo:text-align="center" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.508cm" fo:line-height="115%" fo:text-align="center" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_1" style:family="paragraph" style:display-name="Heading 1" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="1" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.601cm" fo:margin-bottom="0.212cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="24pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_2" style:family="paragraph" style:display-name="Heading 2" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="2" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.707cm" fo:margin-bottom="0.212cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="21pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_3" style:family="paragraph" style:display-name="Heading 3" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="3" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.495cm" fo:margin-bottom="0.212cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="18pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_4" style:family="paragraph" style:display-name="Heading 4" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="4" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.495cm" fo:margin-bottom="0.212cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Liberation Serif" fo:font-family="Liberation Serif" fo:font-size="15pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Header" style:family="paragraph" style:display-name="Header" style:parent-style-name="Header_20_and_20_Footer">
|
||||
<style:paragraph-properties fo:text-align="right" />
|
||||
</style:style>
|
||||
<style:style style:name="Footnote" style:family="paragraph" style:display-name="Footnote" style:parent-style-name="Standard" style:class="extra">
|
||||
<style:paragraph-properties fo:margin-bottom="0.199cm" fo:margin-left="0.601cm" fo:text-indent="-0.601cm" />
|
||||
<style:paragraph-properties fo:margin-bottom="0.169cm" fo:margin-left="0.593cm" fo:text-indent="-0.593cm" />
|
||||
<style:text-properties fo:font-size="10pt" />
|
||||
</style:style>
|
||||
</office:styles>
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
<title>Lorem Ipsum</title>
|
||||
<style>
|
||||
body {color: #000000; font-family: 'Arial'; font-size: 12pt; font-weight: 400; font-style: normal;}
|
||||
p {text-align: left; line-height: 150%; margin-top: 0.00em; margin-bottom: 0.76em;}
|
||||
p {text-align: left; line-height: 150%; margin-top: 0.00em; margin-bottom: 0.60em;}
|
||||
a {color: #4271ae;}
|
||||
mark {background: #ffffa6;}
|
||||
h1, h2, h3, h4 {color: #4271ae; page-break-after: avoid;}
|
||||
h1 {margin-top: 1.85em; margin-bottom: 0.65em;}
|
||||
h2 {margin-top: 2.18em; margin-bottom: 0.65em;}
|
||||
h3 {margin-top: 1.53em; margin-bottom: 0.65em;}
|
||||
h4 {margin-top: 1.53em; margin-bottom: 0.65em;}
|
||||
.title {font-size: 2.5em; margin-top: 1.85em; margin-bottom: 0.65em;}
|
||||
.sep {text-align: center; margin-top: 1.53em; margin-bottom: 1.53em;}
|
||||
h1 {margin-top: 1.50em; margin-bottom: 0.60em;}
|
||||
h2 {margin-top: 1.50em; margin-bottom: 0.60em;}
|
||||
h3 {margin-top: 1.20em; margin-bottom: 0.60em;}
|
||||
h4 {margin-top: 1.20em; margin-bottom: 0.60em;}
|
||||
.title {font-size: 2.5em; margin-top: 1.50em; margin-bottom: 0.60em;}
|
||||
.sep {text-align: center; margin-top: 1.20em; margin-bottom: 1.20em;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -2,22 +2,22 @@
|
||||
"meta": {
|
||||
"projectName": "Lorem Ipsum",
|
||||
"novelAuthor": "lipsum.com",
|
||||
"buildTime": 1730136403,
|
||||
"buildTimeStr": "2024-10-28 18:26:43"
|
||||
"buildTime": 1731526420,
|
||||
"buildTimeStr": "2024-11-13 20:33:40"
|
||||
},
|
||||
"text": {
|
||||
"css": [
|
||||
"body {color: #000000; font-family: 'Arial'; font-size: 12pt; font-weight: 400; font-style: normal;}",
|
||||
"p {text-align: left; line-height: 150%; margin-top: 0.00em; margin-bottom: 0.76em;}",
|
||||
"p {text-align: left; line-height: 150%; margin-top: 0.00em; margin-bottom: 0.60em;}",
|
||||
"a {color: #4271ae;}",
|
||||
"mark {background: #ffffa6;}",
|
||||
"h1, h2, h3, h4 {color: #4271ae; page-break-after: avoid;}",
|
||||
"h1 {margin-top: 1.85em; margin-bottom: 0.65em;}",
|
||||
"h2 {margin-top: 2.18em; margin-bottom: 0.65em;}",
|
||||
"h3 {margin-top: 1.53em; margin-bottom: 0.65em;}",
|
||||
"h4 {margin-top: 1.53em; margin-bottom: 0.65em;}",
|
||||
".title {font-size: 2.5em; margin-top: 1.85em; margin-bottom: 0.65em;}",
|
||||
".sep {text-align: center; margin-top: 1.53em; margin-bottom: 1.53em;}"
|
||||
"h1 {margin-top: 1.50em; margin-bottom: 0.60em;}",
|
||||
"h2 {margin-top: 1.50em; margin-bottom: 0.60em;}",
|
||||
"h3 {margin-top: 1.20em; margin-bottom: 0.60em;}",
|
||||
"h4 {margin-top: 1.20em; margin-bottom: 0.60em;}",
|
||||
".title {font-size: 2.5em; margin-top: 1.50em; margin-bottom: 0.60em;}",
|
||||
".sep {text-align: center; margin-top: 1.20em; margin-bottom: 1.20em;}"
|
||||
],
|
||||
"html": [
|
||||
[
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<office:document xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.3" office:mimetype="application/vnd.oasis.opendocument.text">
|
||||
<office:meta>
|
||||
<meta:creation-date>2024-10-29T09:41:30</meta:creation-date>
|
||||
<meta:generator>novelWriter/2.6a3</meta:generator>
|
||||
<meta:creation-date>2024-11-13T20:33:59</meta:creation-date>
|
||||
<meta:generator>novelWriter/2.6b1</meta:generator>
|
||||
<meta:initial-creator>lipsum.com</meta:initial-creator>
|
||||
<meta:editing-cycles>50</meta:editing-cycles>
|
||||
<meta:editing-duration>P0DT0H40M48S</meta:editing-duration>
|
||||
<dc:title>Lorem Ipsum</dc:title>
|
||||
<dc:date>2024-10-29T09:41:30</dc:date>
|
||||
<dc:date>2024-11-13T20:33:59</dc:date>
|
||||
<dc:creator>lipsum.com</dc:creator>
|
||||
</office:meta>
|
||||
<office:font-face-decls>
|
||||
@@ -22,7 +22,7 @@
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-weight="normal" fo:font-style="normal" fo:font-size="12pt" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.646cm" fo:margin-bottom="0.276cm" fo:keep-with-next="always" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" fo:keep-with-next="always" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-weight="normal" fo:font-style="normal" fo:font-size="15pt" />
|
||||
</style:style>
|
||||
<style:style style:name="Header_20_and_20_Footer" style:display-name="Header and Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra" />
|
||||
@@ -30,45 +30,45 @@
|
||||
<number:number number:min-integer-digits="1" />
|
||||
</number:number-style>
|
||||
<style:style style:name="Text_20_body" style:family="paragraph" style:display-name="Text body" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.320cm" fo:line-height="150%" fo:text-align="left" />
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.254cm" fo:line-height="150%" fo:text-align="left" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="First_20_line_20_indent" style:family="paragraph" style:display-name="First line indent" style:parent-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:text-indent="0.593cm" />
|
||||
</style:style>
|
||||
<style:style style:name="Text_20_Meta" style:family="paragraph" style:display-name="Text Meta" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.320cm" fo:line-height="150%" />
|
||||
<style:paragraph-properties fo:margin-top="0.000cm" fo:margin-bottom="0.254cm" fo:line-height="150%" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="Title" style:family="paragraph" style:display-name="Title" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="chapter">
|
||||
<style:paragraph-properties fo:margin-top="0.784cm" fo:margin-bottom="0.276cm" fo:text-align="center" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" fo:text-align="center" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-size="30pt" fo:font-weight="bold" />
|
||||
</style:style>
|
||||
<style:style style:name="Separator" style:family="paragraph" style:display-name="Separator" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.646cm" fo:margin-bottom="0.646cm" fo:line-height="150%" fo:text-align="center" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.508cm" fo:line-height="150%" fo:text-align="center" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-size="12pt" fo:font-weight="normal" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_1" style:family="paragraph" style:display-name="Heading 1" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="1" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.784cm" fo:margin-bottom="0.276cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-size="24pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_2" style:family="paragraph" style:display-name="Heading 2" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="2" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.922cm" fo:margin-bottom="0.276cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.635cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-size="21pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_3" style:family="paragraph" style:display-name="Heading 3" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="3" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.646cm" fo:margin-bottom="0.276cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-size="18pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_4" style:family="paragraph" style:display-name="Heading 4" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="4" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.646cm" fo:margin-bottom="0.276cm" />
|
||||
<style:paragraph-properties fo:margin-top="0.508cm" fo:margin-bottom="0.254cm" />
|
||||
<style:text-properties style:font-name="Arial" fo:font-family="Arial" fo:font-size="15pt" fo:font-weight="bold" fo:color="#4271ae" loext:opacity="100%" />
|
||||
</style:style>
|
||||
<style:style style:name="Header" style:family="paragraph" style:display-name="Header" style:parent-style-name="Header_20_and_20_Footer">
|
||||
<style:paragraph-properties fo:text-align="right" />
|
||||
</style:style>
|
||||
<style:style style:name="Footnote" style:family="paragraph" style:display-name="Footnote" style:parent-style-name="Standard" style:class="extra">
|
||||
<style:paragraph-properties fo:margin-bottom="0.199cm" fo:margin-left="0.601cm" fo:text-indent="-0.601cm" />
|
||||
<style:paragraph-properties fo:margin-bottom="0.169cm" fo:margin-left="0.593cm" fo:text-indent="-0.593cm" />
|
||||
<style:text-properties fo:font-size="10pt" />
|
||||
</style:style>
|
||||
</office:styles>
|
||||
|
||||
@@ -395,7 +395,7 @@ def testFmtToDocX_ParagraphFormatting(mockGUI):
|
||||
doc._pars[-1].toXml(xTest)
|
||||
assert xmlToText(xTest) == (
|
||||
'<w:body><w:p><w:pPr><w:pStyle w:val="Normal" />'
|
||||
'<w:spacing w:before="0" w:after="0" w:line="252" /></w:pPr>'
|
||||
'<w:spacing w:before="0" w:after="0" w:line="252" w:lineRule="auto" /></w:pPr>'
|
||||
'<w:r><w:rPr /><w:t>Hello World</w:t></w:r></w:p></w:body>'
|
||||
)
|
||||
|
||||
|
||||
@@ -803,10 +803,6 @@ def testFmtToOdt_SaveFlat(mockGUI, fncPath, tstPaths, ipsumText):
|
||||
odt._isNovel = True
|
||||
odt.setHeaderFormat(nwHeadFmt.DOC_AUTO, 1)
|
||||
assert odt._headerFormat == nwHeadFmt.DOC_AUTO
|
||||
odt.setFirstLineIndent(True, 1.4, False)
|
||||
assert odt._firstIndent is True
|
||||
assert odt._fTextIndent == "0.499cm"
|
||||
assert odt._indentFirst is False
|
||||
|
||||
odt.setPageLayout(148, 210, 20, 18, 17, 15)
|
||||
assert odt._mDocWidth == "14.800cm"
|
||||
|
||||
Reference in New Issue
Block a user