Transform multiline HTML into a single line stream to avoid spurious lines in the final result
parent
a26918c69e
commit
e6de06b103
|
@ -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+</g, '><');
|
||||
apiLogger.debug('html:');
|
||||
apiLogger.debug(html);
|
||||
|
||||
|
|
Loading…
Reference in New Issue