aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-08-05 16:27:31 +0100
committerMichael Williamson <mike@zwobble.org>2014-08-05 16:27:31 +0100
commitdbd1d403662781619444de9026ad11680dbb7b95 (patch)
tree174b12e5ec03e525f2ca20f3821b18ebc7527931 /lib
parent2e932c95e310c0192f09ae9944455c40dd1f9110 (diff)
Convert line breaks to <br>
Diffstat (limited to 'lib')
-rw-r--r--lib/document-to-html.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index d5be742..9c1e5af 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -263,7 +263,11 @@ function DocumentConversion(options) {
"image": options.convertImage || defaultConvertImage,
"table": convertTable,
"tableRow": convertTableRow,
- "tableCell": convertTableCell
+ "tableCell": convertTableCell,
+ "lineBreak": function(element, html, messages, callback) {
+ html.selfClosing(htmlPaths.element("br"));
+ callback();
+ }
};
return {
convertToHtml: convertToHtml