From 8b6a4775f742d0a8b9b18581b0fd94c60b9a4e1d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 15 Aug 2020 12:29:28 +0100 Subject: Read w:softHyphen --- test/docx/body-reader.tests.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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", {}, [ -- cgit v1.2.3