From f968b5a057bebf3223a063f356344ef2404f5255 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Sun, 8 Dec 2013 11:37:47 +0100 Subject: [PATCH] useless var statement (function scope) --- src/node/utils/ExportHtml.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js index 2a614e99..51d635d5 100644 --- a/src/node/utils/ExportHtml.js +++ b/src/node/utils/ExportHtml.js @@ -332,17 +332,18 @@ function getHTMLFromAtext(pad, atext, authorColors) { chars--; // exclude newline at end of line, if present } - + var s = taker.take(chars); - + //removes the characters with the code 12. Don't know where they come //from but they break the abiword parser and are completly useless s = s.replace(String.fromCharCode(12), ""); - + assem.append(_encodeWhitespace(Security.escapeHTML(s))); } // end iteration over spans in line - - var tags2close = []; + + // close all the tags that are open after the last op + tags2close = []; for (var i = propVals.length - 1; i >= 0; i--) { if (propVals[i])