diff options
author | webzwo0i <webzwo0i@c3d2.de> | 2013-12-08 13:53:26 +0100 |
---|---|---|
committer | webzwo0i <webzwo0i@c3d2.de> | 2013-12-08 13:53:26 +0100 |
commit | e1fbb1d1aa56b058e836a4eb24cd8aa62045f691 (patch) | |
tree | 13b53ac8bb422409389e986685495c2debb1882a | |
parent | 9557dc9dba04d14d4fc3d1d9d3d0da75d8872441 (diff) | |
download | etherpad-lite-e1fbb1d1aa56b058e836a4eb24cd8aa62045f691.zip |
fix loop
-rw-r--r-- | src/node/utils/ExportHtml.js | 5 |
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--; } } |