diff --git a/sample/nwProject.nwx b/sample/nwProject.nwx index ee8d43ca..18efb9d6 100644 --- a/sample/nwProject.nwx +++ b/sample/nwProject.nwx @@ -1,6 +1,6 @@ - - + + Sample Project Sample Project Jane Smith diff --git a/tests/reference/coreToOdt_SaveFlat_document.fodt b/tests/reference/coreToOdt_SaveFlat_document.fodt index 0c2b658e..1f49def3 100644 --- a/tests/reference/coreToOdt_SaveFlat_document.fodt +++ b/tests/reference/coreToOdt_SaveFlat_document.fodt @@ -1,13 +1,13 @@ - 2023-05-29T22:10:15 - novelWriter/2.0.7 + 2023-07-19T18:05:15 + novelWriter/2.1-beta1 Jane Smith 1234 P42DT12H34M56S Test Project - 2023-05-29T22:10:15 + 2023-07-19T18:05:15 Jane Smith @@ -38,6 +38,10 @@ + + + + diff --git a/tests/reference/coreToOdt_SaveFull_styles.xml b/tests/reference/coreToOdt_SaveFull_styles.xml index 5f2d1db6..37dbceb9 100644 --- a/tests/reference/coreToOdt_SaveFull_styles.xml +++ b/tests/reference/coreToOdt_SaveFull_styles.xml @@ -28,6 +28,10 @@ + + + + diff --git a/tests/reference/mBuildDocBuild_OpenDocument_Lorem_Ipsum.fodt b/tests/reference/mBuildDocBuild_OpenDocument_Lorem_Ipsum.fodt index aba1a301..278a0632 100644 --- a/tests/reference/mBuildDocBuild_OpenDocument_Lorem_Ipsum.fodt +++ b/tests/reference/mBuildDocBuild_OpenDocument_Lorem_Ipsum.fodt @@ -1,13 +1,13 @@ - 2023-05-29T22:20:22 - novelWriter/2.0.7 + 2023-07-19T18:05:14 + novelWriter/2.1-beta1 lipsum.com - 40 - P0DT0H31M45S + 42 + P0DT0H31M53S Lorem Ipsum - 2023-05-29T22:20:22 + 2023-07-19T18:05:14 lipsum.com @@ -38,6 +38,10 @@ + + + + diff --git a/tests/test_core/test_core_toodt.py b/tests/test_core/test_core_toodt.py index 5ab6f276..359b0935 100644 --- a/tests/test_core/test_core_toodt.py +++ b/tests/test_core/test_core_toodt.py @@ -129,8 +129,8 @@ def testCoreToOdt_TextFormatting(mockGUI): assert theDoc._paraStyle("Text_20_body", oStyle) == "P1" assert list(theDoc._mainPara.keys()) == [ - "Text_20_body", "Text_20_Meta", "Title", "Heading_20_1", - "Heading_20_2", "Heading_20_3", "Heading_20_4", "Header" + "Text_20_body", "Text_20_Meta", "Title", "Separator", + "Heading_20_1", "Heading_20_2", "Heading_20_3", "Heading_20_4", "Header", ] theKey = "071d6b2e4764749f8c78d3c1ab9099fa04c07d2d53fd3de61eb1bdf1cb4845c3" @@ -145,9 +145,9 @@ def testCoreToOdt_TextFormatting(mockGUI): theDoc.initDocument() theDoc._addTextPar("Standard", oStyle, "") assert xmlToText(theDoc._xText) == ( - "" - "" - "" + '' + '' + '' ) # No Format @@ -155,9 +155,9 @@ def testCoreToOdt_TextFormatting(mockGUI): theDoc._addTextPar("Standard", oStyle, "Hello World") assert theDoc.errData == [] assert xmlToText(theDoc._xText) == ( - "" - "Hello World" - "" + '' + 'Hello World' + '' ) # Heading Level None @@ -165,9 +165,9 @@ def testCoreToOdt_TextFormatting(mockGUI): theDoc._addTextPar("Standard", oStyle, "Hello World", isHead=True) assert theDoc.errData == [] assert xmlToText(theDoc._xText) == ( - "" - "Hello World" - "" + '' + 'Hello World' + '' ) # Heading Level 1 @@ -175,9 +175,9 @@ def testCoreToOdt_TextFormatting(mockGUI): theDoc._addTextPar("Standard", oStyle, "Hello World", isHead=True, oLevel="1") assert theDoc.errData == [] assert xmlToText(theDoc._xText) == ( - "" - "Hello World" - "" + '' + 'Hello World' + '' ) # Formatted Text @@ -187,11 +187,11 @@ def testCoreToOdt_TextFormatting(mockGUI): theDoc._addTextPar("Standard", oStyle, theTxt, tFmt=theFmt) assert theDoc.errData == [] assert xmlToText(theDoc._xText) == ( - "" - "A few " - "words from our sponsor" - "" + '' + 'A few ' + 'words from ' + 'our sponsor' + '' ) # Incorrectly Formatted Text @@ -201,11 +201,11 @@ def testCoreToOdt_TextFormatting(mockGUI): theDoc._addTextPar("Standard", oStyle, theTxt, tFmt=theFmt) assert theDoc.errData == ["Unknown format tag encountered"] assert xmlToText(theDoc._xText) == ( - "" - "" - "A few words" - "" - "" + '' + '' + 'A few words' + '' + '' ) # Formatted Text @@ -215,9 +215,9 @@ def testCoreToOdt_TextFormatting(mockGUI): theDoc._addTextPar("Standard", oStyle, theTxt, tFmt=theFmt) assert theDoc.errData == [] assert xmlToText(theDoc._xText) == ( - "" - "HelloWorld" - "" + '' + 'HelloWorld' + '' ) # Test for issue #1412 @@ -230,10 +230,10 @@ def testCoreToOdt_TextFormatting(mockGUI): theDoc._addTextPar("Standard", oStyle, theTxt, tFmt=theFmt) assert theDoc.errData == [] assert xmlToText(theDoc._xText) == ( - "" - "Test text **" - "bold** and more." - "" + '' + 'Test text **' + 'bold** and more.' + '' ) # END Test testCoreToOdt_TextFormatting @@ -454,9 +454,9 @@ def testCoreToOdt_Convert(mockGUI): assert theDoc.errData == [] assert xmlToText(theDoc._xText) == ( '' - '* * *' + '* * *' 'Text' - '* * *' + '* * *' 'Text' '' ) @@ -472,9 +472,9 @@ def testCoreToOdt_Convert(mockGUI): assert theDoc.errData == [] assert xmlToText(theDoc._xText) == ( '' - '' + '' 'Text' - '' + '' 'Text' '' ) @@ -500,24 +500,24 @@ def testCoreToOdt_Convert(mockGUI): assert xmlToText(theDoc._xText) == ( '' 'Scene' - '' + '' 'Point of View: Jane' - '' + '' 'Characters: John' '' 'Plot: Main' - 'Right align' + 'Right align' 'Left Align' - 'Centered' + 'Centered' 'Left indent' 'Right indent' '' ) + assert getStyle("P3")._pAttr["margin-bottom"] == ["fo", "0.000cm"] assert getStyle("P4")._pAttr["margin-bottom"] == ["fo", "0.000cm"] - assert getStyle("P5")._pAttr["margin-bottom"] == ["fo", "0.000cm"] - assert getStyle("P5")._pAttr["margin-top"] == ["fo", "0.000cm"] - assert getStyle("P6")._pAttr["text-align"] == ["fo", "right"] - assert getStyle("P3")._pAttr["text-align"] == ["fo", "center"] + assert getStyle("P4")._pAttr["margin-top"] == ["fo", "0.000cm"] + assert getStyle("P5")._pAttr["text-align"] == ["fo", "right"] + assert getStyle("P6")._pAttr["text-align"] == ["fo", "center"] assert getStyle("P7")._pAttr["margin-left"] == ["fo", "1.693cm"] assert getStyle("P8")._pAttr["margin-right"] == ["fo", "1.693cm"]