aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/docx/body-reader.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index 12a12c7..e7e306c 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -227,6 +227,9 @@ function BodyReader(options) {
"w:noBreakHyphen": function() {
return elementResult(new documents.Text("\u2011"));
},
+ "w:softHyphen": function(element) {
+ return elementResult(new documents.Text("\u00AD"));
+ },
"w:hyperlink": function(element) {
var relationshipId = element.attributes["r:id"];
var anchor = element.attributes["w:anchor"];
@@ -288,10 +291,6 @@ function BodyReader(options) {
return readXmlElements(element.firstOrEmpty("w:sdtContent").children);
},
- "w:softHyphen": function(element) {
- return elementResult(new documents.Text("\u00AD"));
- },
-
"w:ins": readChildElements,
"w:object": readChildElements,
"w:smartTag": readChildElements,