Skip to content

Commit

Permalink
Fix HTML formatting issue (#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo authored Nov 5, 2024
2 parents bd82392 + 83b244a commit bec082c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion novelwriter/core/tohtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ def saveHtml5(self, path: str | 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 {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;}
Expand All @@ -22,6 +21,7 @@
.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>
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core/test_core_tohtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bec082c

Please sign in to comment.