Skip to content

Commit

Permalink
Merge bugfix for #2080 from 2.5 release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Nov 5, 2024
2 parents ae26138 + bec082c commit 04645ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion novelwriter/formats/tohtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ def saveDocument(self, path: Path) -> None:
"<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"
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/mBuildDocBuild_HTML5_Lorem_Ipsum.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset='utf-8'>
<title>Lorem Ipsum</title>
</head>
<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;}
Expand All @@ -17,6 +16,7 @@
.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;}
</style>
</head>
<body>
<article>
<h1 class='title' style='text-align: center;'>Lorem Ipsum</h1>
Expand Down
2 changes: 1 addition & 1 deletion tests/test_formats/test_fmt_tohtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,10 @@ def testFmtToHtml_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"
Expand Down

0 comments on commit 04645ca

Please sign in to comment.