summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwebzwo0i <webzwo0i@c3d2.de>2013-12-08 13:53:26 +0100
committerwebzwo0i <webzwo0i@c3d2.de>2013-12-08 13:53:26 +0100
commite1fbb1d1aa56b058e836a4eb24cd8aa62045f691 (patch)
tree13b53ac8bb422409389e986685495c2debb1882a
parent9557dc9dba04d14d4fc3d1d9d3d0da75d8872441 (diff)
downloadetherpad-lite-e1fbb1d1aa56b058e836a4eb24cd8aa62045f691.zip
fix loop
-rw-r--r--src/node/utils/ExportHtml.js5
1 files 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--;
}
}