aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-01 12:56:26 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-01 12:56:26 +0100
commit9793af8582ba804b5e80fd7445abb6213b87be62 (patch)
treeab344a690b86060e2282118e681343dfb5e889ac /lib
parentad75779025dd2fdae2eab851e1be1c6e5b8955ef (diff)
Remove implicit call to closeAll in asString
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("");
}