aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/documents.js1
-rw-r--r--lib/html-generator.js1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/documents.js b/lib/documents.js
index ba2e8ec..1b52bf4 100644
--- a/lib/documents.js
+++ b/lib/documents.js
@@ -19,6 +19,7 @@ function DocumentConverter(options) {
function convertToHtml(document) {
var html = new HtmlGenerator();
elementToHtml(document, html);
+ html.closeAll();
return q.when({
html: html.asString()
diff --git a/lib/html-generator.js b/lib/html-generator.js
index 38e3619..3df611d 100644
--- a/lib/html-generator.js
+++ b/lib/html-generator.js
@@ -17,7 +17,6 @@ function HtmlGenerator() {
}
function asString() {
- popAll();
return fragments.join("");
}