diff options
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 1260575..afdddfc 100644 --- a/test/docx/body-reader.tests.js +++ b/test/docx/body-reader.tests.js @@ -1219,6 +1219,12 @@ test("text nodes are ignored when reading children", function() { assert.deepEqual(run, new documents.Run([])); }); +test("soft hyphens are read as text", function() { + var runXml = new XmlElement("w:softHyphen", {}, []); + var text = readXmlElementValue(runXml); + assert.deepEqual(text, new documents.Text("\u00AD")); +}); + function paragraphWithStyleId(styleId) { return new XmlElement("w:p", {}, [ new XmlElement("w:pPr", {}, [ |
