From 611e0c9af7c1948ad46c5471a426ec751e73a1ea Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 28 Nov 2016 17:48:31 +0000 Subject: Call freshElement to create self-closing elements --- lib/document-to-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/document-to-html.js') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index c8a9900..d223d82 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -350,7 +350,7 @@ function DocumentConversion(options, comments) { "tableRow": convertTableRow, "tableCell": convertTableCell, "lineBreak": function(element, messages) { - return [Html.selfClosingElement("br")]; + return [Html.freshElement("br")]; } }; return { -- cgit v1.2.3