From 344cb23aa9fd61b6fc23397bd5566853bd914c5c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 15 Aug 2020 12:33:39 +0100 Subject: Move soft hyphen support next to non-breaking hyphen support --- lib/docx/body-reader.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') 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, -- cgit v1.2.3