aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-12-06 14:33:08 +0000
committerMichael Williamson <mike@zwobble.org>2015-12-06 14:33:08 +0000
commit647b99931c20f1ba145ad8638707f53c2c76274a (patch)
treec94882e474c06951358fcf85784ff3dc400f3432
parentc7e4ee337590c524190328b285f754015271626f (diff)
Ignore office-word:wrap
-rw-r--r--NEWS2
-rw-r--r--lib/docx/body-reader.js1
-rw-r--r--lib/docx/office-xml-reader.js3
3 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index e46f6e9..3948a28 100644
--- a/NEWS
+++ b/NEWS
@@ -6,7 +6,7 @@
* Read children of v:roundrect.
-* Ignore v:shadow and v:shapetype.
+* Ignore office-word:wrap, v:shadow and v:shapetype.
# 0.3.27
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index 07c0486..c5d9b02 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -252,6 +252,7 @@ var supportedImageTypes = {
};
var ignoreElements = {
+ "office-word:wrap": true,
"v:shadow": true,
"v:shapetype": true,
"w:bookmarkEnd": true,
diff --git a/lib/docx/office-xml-reader.js b/lib/docx/office-xml-reader.js
index b5231eb..93d1d34 100644
--- a/lib/docx/office-xml-reader.js
+++ b/lib/docx/office-xml-reader.js
@@ -12,7 +12,8 @@ var xmlNamespaceMap = {
"http://schemas.openxmlformats.org/drawingml/2006/picture": "pic",
"http://schemas.openxmlformats.org/package/2006/content-types": "content-types",
"urn:schemas-microsoft-com:vml": "v",
- "http://schemas.openxmlformats.org/markup-compatibility/2006": "mc"
+ "http://schemas.openxmlformats.org/markup-compatibility/2006": "mc",
+ "urn:schemas-microsoft-com:office:word": "office-word"
};