From e1fbb1d1aa56b058e836a4eb24cd8aa62045f691 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Sun, 8 Dec 2013 13:53:26 +0100 Subject: fix loop --- src/node/utils/ExportHtml.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js index e50c4bae..01920da7 100644 --- a/src/node/utils/ExportHtml.js +++ b/src/node/utils/ExportHtml.js @@ -233,9 +233,10 @@ function getHTMLFromAtext(pad, atext, authorColors) // close all tags upto the outer most if (outermostTag != -1) { - for (i=0; i <= outermostTag; outermostTag--) + while ( outermostTag >= 0 ) { - emitCloseTag(openTags[0]) + emitCloseTag(openTags[0]); + outermostTag--; } } -- cgit v1.2.3