From 10ff3fcccdf87b25591ea0a0751d8b0bb7561501 Mon Sep 17 00:00:00 2001 From: gardenapple Date: Sun, 9 May 2021 22:33:40 +0300 Subject: [PATCH] Fix body appearing outside of tag with custom CSS --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 3d73b1b..6b32ea7 100755 --- a/index.js +++ b/index.js @@ -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\n"); writeStream.write(Properties.get("html-title")(article, false, window)); writeStream.write('\n'); @@ -565,7 +565,6 @@ function onLoadDOM(dom) { } writeStream.write("\n
\n"); writeStream.write(Properties.get("html-content")(article, false, window)); - writeStream.write("\n\n"); }