aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2020-08-15 12:33:39 +0100
committerMichael Williamson <mike@zwobble.org>2020-08-15 12:33:39 +0100
commit344cb23aa9fd61b6fc23397bd5566853bd914c5c (patch)
tree5b67295ed27e3aa26e074197aa52c18496cfb601 /lib
parent8b6a4775f742d0a8b9b18581b0fd94c60b9a4e1d (diff)
Move soft hyphen support next to non-breaking hyphen support
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,