aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-06-08 19:21:26 +0100
committerMichael Williamson <mike@zwobble.org>2017-06-08 19:21:26 +0100
commit74e4cfd02b0ac26d6816b8be89946fe28667317c (patch)
treecfabfc717863c260e4af2fbf187cf316689cc638 /lib
parent2ba87ab9b1336cc901c94c28ec23484f4df56006 (diff)
Support non breaking hyphen elements
Diffstat (limited to 'lib')
-rw-r--r--lib/docx/body-reader.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index 7b7f6f2..742e362 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -204,6 +204,9 @@ function BodyReader(options) {
"w:tab": function(element) {
return elementResult(new documents.Tab());
},
+ "w:noBreakHyphen": function() {
+ return elementResult(new documents.Text("\u2011"));
+ },
"w:hyperlink": function(element) {
var relationshipId = element.attributes["r:id"];
var anchor = element.attributes["w:anchor"];