diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-06-08 19:21:26 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-06-08 19:21:26 +0100 |
| commit | 74e4cfd02b0ac26d6816b8be89946fe28667317c (patch) | |
| tree | cfabfc717863c260e4af2fbf187cf316689cc638 /test | |
| parent | 2ba87ab9b1336cc901c94c28ec23484f4df56006 (diff) | |
Support non breaking hyphen elements
Diffstat (limited to 'test')
| -rw-r--r-- | test/docx/body-reader.tests.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js index 4632e3b..8aa6836 100644 --- a/test/docx/body-reader.tests.js +++ b/test/docx/body-reader.tests.js @@ -511,6 +511,12 @@ test("w:tab is read as document tab element", function() { assert.deepEqual(result.value, new documents.Tab()); }); +test("w:noBreakHyphen is read as non-breaking hyphen character", function() { + var noBreakHyphenXml = new XmlElement("w:noBreakHyphen"); + var result = readXmlElement(noBreakHyphenXml); + assert.deepEqual(result.value, new documents.Text("\u2011")); +}); + test("w:tbl is read as document table element", function() { var tableXml = new XmlElement("w:tbl", {}, [ new XmlElement("w:tr", {}, [ |
