aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-06-20 12:11:21 +0100
committerMichael Williamson <mike@zwobble.org>2016-06-20 12:11:21 +0100
commite9f8f12f3ac0a4cf5e80304866627ccf7bfe5f1d (patch)
tree94bba4c103978e57cb8da9963cd8189fb30b6671 /lib/document-to-html.js
parentffa10aa8d40fcb6a19043026b4e1d3d3df3d13f2 (diff)
Remove reassignment
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index 4c58979..740fc30 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -64,13 +64,11 @@ function DocumentConversion(options) {
}
});
}
- html = replaceDeferred(html);
-
var writer = writers.writer({
prettyPrint: options.prettyPrint,
outputFormat: options.outputFormat
});
- Html.write(writer, Html.simplify(html));
+ Html.write(writer, Html.simplify(replaceDeferred(html)));
return new results.Result(writer.asString(), messages);
});
}