aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2020-08-15 12:29:28 +0100
committerMichael Williamson <mike@zwobble.org>2020-08-15 12:29:28 +0100
commit8b6a4775f742d0a8b9b18581b0fd94c60b9a4e1d (patch)
tree5219d509dee5da78bcaf2ef4a294c47e69bbddc5 /test
parent36713a54a9740dbad09cfb29e0382633d778ed73 (diff)
Read w:softHyphen
Diffstat (limited to 'test')
-rw-r--r--test/docx/body-reader.tests.js6
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", {}, [