From 74e4cfd02b0ac26d6816b8be89946fe28667317c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 8 Jun 2017 19:21:26 +0100 Subject: Support non breaking hyphen elements --- lib/docx/body-reader.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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"]; -- cgit v1.2.3