From 6653a3b6f09a6a1ea33c5b23315f9ebf3b60e431 Mon Sep 17 00:00:00 2001 From: Jordan Hollinger Date: Sat, 9 Jun 2012 11:32:05 -0400 Subject: [PATCH] Bugfix to setPadHTML. resolves #764 --- src/node/utils/ImportHtml.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/node/utils/ImportHtml.js b/src/node/utils/ImportHtml.js index 4b50b032..5c6bb634 100644 --- a/src/node/utils/ImportHtml.js +++ b/src/node/utils/ImportHtml.js @@ -50,9 +50,7 @@ function setPadHTML(pad, html, callback) } // Get the new plain text and its attributes - var newText = map(result.lines, function (e) { - return e + '\n'; - }).join(''); + var newText = result.lines.join('\n'); apiLogger.debug('newText:'); apiLogger.debug(newText); var newAttribs = result.lineAttribs.join('|1+1') + '|1+1';