diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-08 20:56:47 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-08 20:56:47 +0100 |
| commit | 03716aafae79ce637bd130b006faac3ffd42499d (patch) | |
| tree | fcce77f79b4bbdc12769e2532dae69a17c7e6d73 /lib/document-to-html.js | |
| parent | 0695263132193745d7f543fb1a20b63dbfe00075 (diff) | |
Use open/close names rather than push/pop for HtmlGenerator
Diffstat (limited to 'lib/document-to-html.js')
| -rw-r--r-- | lib/document-to-html.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 8fe2f0f..e5c1def 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -58,10 +58,10 @@ function DocumentConverter(options) { } } if (run.isBold) { - runHtml.push(htmlPaths.element("strong")); + runHtml.open(htmlPaths.element("strong")); } if (run.isItalic) { - runHtml.push(htmlPaths.element("em")); + runHtml.open(htmlPaths.element("em")); } return convertElements(run.children, runHtml) .then(function() { @@ -80,9 +80,9 @@ function DocumentConverter(options) { html.text(element.value); }, "hyperlink": function(element, html) { - html.push(htmlPaths.element("a", {href: element.href})); + html.open(htmlPaths.element("a", {href: element.href})); return convertElements(element.children, html).then(function() { - html.pop(); + html.close(); }); }, "image": function(element, html) { |
