Transform multiline HTML into a single line stream to avoid spurious lines in the final result

pull/204/head
Lorenzo Gil Sanchez 2011-11-22 10:09:10 +01:00
parent a26918c69e
commit e6de06b103
1 changed files with 1 additions and 1 deletions

View File

@ -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);