From 25d87260e5b210471ef4d96a927c69fc20eb662b Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Tue, 10 Nov 2020 08:11:25 +0100 Subject: [PATCH] ImportHTML: don't remove new lines from HTML before feeding it to cheerio --- src/node/utils/ImportHtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/ImportHtml.js b/src/node/utils/ImportHtml.js index 8cbfdbab9..d6e05798a 100644 --- a/src/node/utils/ImportHtml.js +++ b/src/node/utils/ImportHtml.js @@ -33,7 +33,7 @@ exports.setPadHTML = async (pad, html) => { rehype() .use(format, opts) .process(html, function(err, output){ - html = String(output).replace(/(\r\n|\n|\r)/gm,""); + html = String(output); }) var $ = cheerio.load(html);