From cdfeaf4b15e7161a0eae4bcb3df868d709db10ad Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 28 Nov 2016 18:01:35 +0000 Subject: Only convert line breaks to br elements --- test/document-to-html.tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/document-to-html.tests.js') diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js index 6134dd0..d21badb 100644 --- a/test/document-to-html.tests.js +++ b/test/document-to-html.tests.js @@ -442,6 +442,14 @@ test('line break is converted to
', function() { }); }); +test('breaks that are not line breaks are ignored', function() { + var converter = new DocumentConverter(); + + return converter.convertToHtml(documents.pageBreak).then(function(result) { + assert.equal(result.value, ""); + }); +}); + test('footnote reference is converted to superscript intra-page link', function() { var footnoteReference = new documents.NoteReference({ noteType: "footnote", -- cgit v1.2.3