From e6de06b1039aae9559edec2a4bc68ea509710a53 Mon Sep 17 00:00:00 2001 From: Lorenzo Gil Sanchez Date: Tue, 22 Nov 2011 10:09:10 +0100 Subject: [PATCH] Transform multiline HTML into a single line stream to avoid spurious lines in the final result --- node/utils/ImportHtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/utils/ImportHtml.js b/node/utils/ImportHtml.js index 0e236e9b0..c0d38fe50 100644 --- a/node/utils/ImportHtml.js +++ b/node/utils/ImportHtml.js @@ -31,7 +31,7 @@ function setPadHTML(pad, html, callback) var padText = pad.text(); // Parse the incoming HTML with jsdom - var doc = jsdom(html); + var doc = jsdom(html.replace(/>\n+<'); apiLogger.debug('html:'); apiLogger.debug(html);