aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-28 18:01:35 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-28 18:01:35 +0000
commitcdfeaf4b15e7161a0eae4bcb3df868d709db10ad (patch)
tree66786031e5c5e357cd2436610046b4470cc79b03 /lib/document-to-html.js
parentbb3d113828218fa29dae16cae6f2ff5e05e48564 (diff)
Only convert line breaks to br elements
Diffstat (limited to 'lib/document-to-html.js')
-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 2591e4f..a51afd0 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -350,7 +350,11 @@ function DocumentConversion(options, comments) {
"tableRow": convertTableRow,
"tableCell": convertTableCell,
"break": function(element, messages) {
- return [Html.freshElement("br")];
+ if (element.breakType === "line") {
+ return [Html.freshElement("br")];
+ } else {
+ return [];
+ }
}
};
return {