Test > text <bold> and more.
\n" ) - # Test for bug #950 - # ================= + # Test for issue #950 + # =================== # See: https://github.com/vkbo/novelWriter/issues/950 theHtml.setComments(True) @@ -436,6 +436,17 @@ def testCoreToHtml_SpecialCases(mockGUI): "Test text **bold** and more.
\n" + ) + # END Test testCoreToHtml_SpecialCases diff --git a/tests/test_core/test_core_tokenizer.py b/tests/test_core/test_core_tokenizer.py index 6b44c93d..8a2f9631 100644 --- a/tests/test_core/test_core_tokenizer.py +++ b/tests/test_core/test_core_tokenizer.py @@ -222,10 +222,12 @@ def testCoreToken_TextOps(monkeypatch, mockGUI, mockRnd, fncPath): def testCoreToken_StripEscape(): """Test the stripEscape helper function. """ - text = r"This is text with escapes: \** \~~ \__" - assert stripEscape(text) == "This is text with escapes: ** ~~ __" + text1 = "This is text with escapes: \\** \\~~ \\__" + text2 = "This is text with escapes: ** ~~ __" + assert stripEscape(text1) == "This is text with escapes: ** ~~ __" + assert stripEscape(text2) == "This is text with escapes: ** ~~ __" - return +# END Test testCoreToken_StripEscape @pytest.mark.core diff --git a/tests/test_core/test_core_toodt.py b/tests/test_core/test_core_toodt.py index fedfbcf3..6e3ea446 100644 --- a/tests/test_core/test_core_toodt.py +++ b/tests/test_core/test_core_toodt.py @@ -221,7 +221,21 @@ def testCoreToOdt_TextFormatting(mockGUI): "" ) - # Tabs and Breaks + # Test for issue #1412 + # ==================== + # See: https://github.com/vkbo/novelWriter/issues/1412 + + theDoc.initDocument() + theTxt = "Test text \\**_bold_** and more." + theFmt = " I i " + theDoc._addTextPar("Standard", oStyle, theTxt, theFmt=theFmt) + assert theDoc.getErrors() == [] + assert xmlToText(theDoc._xText) == ( + "The backlinks in the Reference Panel below the Document Viewer were no longer working. They have now been fixed. They were broken due to a change in the link format in 2.0.
+This is a patch release that fixes a few issues and adds a Japanese translation.
+The issues were mostly related to spell checking. In particular, issues with finding the word +boundary when using underscore characters for italics markup. These issues should now be resolved. +In addition, escaped markup characters are now renderred properly in HTML and ODT build formats.
+A few usability improvements have also been made. The Add Item menu in the project tree no +longer shows the options to create Novel Documents when an item in the tree is selected that cannot +hold such a document. In addition, the "Change Label" context menu entry has been changed to say +"Rename", which is a more logical choice.
+