From 83b244a8a3fd3b4e1f31091bbb2f582cb6f3dcaf Mon Sep 17 00:00:00 2001
From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com>
Date: Tue, 5 Nov 2024 18:39:43 +0100
Subject: [PATCH] Fix head tags order in HTML output (#2080)
---
novelwriter/core/tohtml.py | 2 +-
tests/reference/mBuildDocBuild_HTML5_Lorem_Ipsum.htm | 2 +-
tests/test_core/test_core_tohtml.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/novelwriter/core/tohtml.py b/novelwriter/core/tohtml.py
index d9221e291..053ef2b2f 100644
--- a/novelwriter/core/tohtml.py
+++ b/novelwriter/core/tohtml.py
@@ -299,10 +299,10 @@ def saveHtml5(self, path: str | Path) -> None:
"
\n"
"\n"
"{title:s}\n"
- "\n"
"\n"
+ "\n"
"\n"
"\n"
"{body:s}\n"
diff --git a/tests/reference/mBuildDocBuild_HTML5_Lorem_Ipsum.htm b/tests/reference/mBuildDocBuild_HTML5_Lorem_Ipsum.htm
index d5348e248..f8747b987 100644
--- a/tests/reference/mBuildDocBuild_HTML5_Lorem_Ipsum.htm
+++ b/tests/reference/mBuildDocBuild_HTML5_Lorem_Ipsum.htm
@@ -3,7 +3,6 @@
Lorem Ipsum
-
+
Lorem Ipsum
diff --git a/tests/test_core/test_core_tohtml.py b/tests/test_core/test_core_tohtml.py
index 7974cef4d..bde7f158d 100644
--- a/tests/test_core/test_core_tohtml.py
+++ b/tests/test_core/test_core_tohtml.py
@@ -628,10 +628,10 @@ def testCoreToHtml_Save(mockGUI, fncPath):
"\n"
"\n"
"\n"
- "\n"
"\n"
+ "\n"
"\n"
"\n"
"{bodyText:s}\n"