Fix head tags order in HTML output (#2080)

This commit is contained in:
Veronica Berglyd Olsen
2024-11-05 18:39:43 +01:00
parent bd82392d71
commit 83b244a8a3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -299,10 +299,10 @@ class ToHtml(Tokenizer):
"<head>\n"
"<meta charset='utf-8'>\n"
"<title>{title:s}</title>\n"
"</head>\n"
"<style>\n"
"{style:s}\n"
"</style>\n"
"</head>\n"
"<body>\n"
"<article>\n"
"{body:s}\n"
@@ -3,7 +3,6 @@
<head>
<meta charset='utf-8'>
<title>Lorem Ipsum</title>
</head>
<style>
body {font-family: 'Arial'; font-size: 12pt; font-weight: 400; font-style: normal;}
p {text-align: justify; line-height: 150%; margin-top: 0.00em; margin-bottom: 0.76em;}
@@ -22,6 +21,7 @@ mark {background: rgb(255, 255, 166);}
.dialog {color: rgb(66, 113, 174);}
.altdialog {color: rgb(129, 55, 9);}
</style>
</head>
<body>
<article>
<h1 class='title' style='text-align: center;'>Lorem Ipsum</h1>
+1 -1
View File
@@ -628,10 +628,10 @@ def testCoreToHtml_Save(mockGUI, fncPath):
"<head>\n"
"<meta charset='utf-8'>\n"
"<title></title>\n"
"</head>\n"
"<style>\n"
"{htmlStyle:s}\n"
"</style>\n"
"</head>\n"
"<body>\n"
"<article>\n"
"{bodyText:s}\n"