Fix body appearing outside of <body> tag with custom CSS

main
gardenapple 3 years ago
parent 8c3cfc140a
commit 10ff3fcccd
No known key found for this signature in database
GPG Key ID: CAF17E9ABE789268

@ -39,7 +39,6 @@ const __ = require("y18n")({
}).__;
//JSDOM, fs, Readability, and Readability-readerable are loaded on-demand.
//To-do: lazy loading?
const ExitCodes = {
badUsageCLI: 64,
@ -556,6 +555,7 @@ function onLoadDOM(dom) {
`
);
} else {
writeStream.write("\n<body>\n");
writeStream.write(Properties.get("html-title")(article, false, window));
writeStream.write('\n');
@ -565,7 +565,6 @@ function onLoadDOM(dom) {
}
writeStream.write("\n<hr>\n");
writeStream.write(Properties.get("html-content")(article, false, window));
writeStream.write("\n<body>\n");
}

Loading…
Cancel
Save