aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-04-09 12:05:05 +0100
committerMichael Williamson <mike@zwobble.org>2014-04-09 12:05:05 +0100
commit56589f6390459cb7a4aedd1f7e5ce0a518b0f3c7 (patch)
tree74264e152b3f5ba60e1a28b95da6a286bea78209 /lib
parent06cc13300efe79b591690b577a8b2094317ee551 (diff)
Revert "Add prettyPrint option"
This reverts commit 06cc13300efe79b591690b577a8b2094317ee551.
Diffstat (limited to 'lib')
-rw-r--r--lib/document-to-html.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index 1cbde9f..ddb8848 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -1,6 +1,5 @@
var promises = require("./promises");
var async = require("async");
-var beautifyHtml = require("js-beautify/js/lib/beautify-html")
var htmlPaths = require("./html-paths");
var HtmlGenerator = require("./html-generator").HtmlGenerator;
@@ -29,11 +28,8 @@ function DocumentConverter(options) {
return promises.nfcall(elementToHtml, document, html, messages).then(function() {
html.closeAll();
- var htmlString = html.asString();
- if (options.prettyPrint) {
- htmlString = beautifyHtml.html_beautify(htmlString, {indent_size: 2});
- }
- return new results.Result(htmlString, messages);
+
+ return new results.Result(html.asString(), messages);
});
}