aboutsummaryrefslogtreecommitdiff
path: root/lib/docx/document-xml-reader.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-07-05 19:54:15 +0100
committerMichael Williamson <mike@zwobble.org>2014-07-05 19:54:15 +0100
commit91a7928116c5157b451892e586b684744dbe4174 (patch)
treee5018e9f5e3fd8933709f7deac606e8e3bb95d0c /lib/docx/document-xml-reader.js
parentdb6bae062b7bc2e9bcda02a62dea2f438bd00d73 (diff)
Get table conversion working
Diffstat (limited to 'lib/docx/document-xml-reader.js')
-rw-r--r--lib/docx/document-xml-reader.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/docx/document-xml-reader.js b/lib/docx/document-xml-reader.js
index b2736f8..e38590b 100644
--- a/lib/docx/document-xml-reader.js
+++ b/lib/docx/document-xml-reader.js
@@ -153,7 +153,7 @@ function DocumentXmlReader(options) {
}
});
},
- "w:table": function(element) {
+ "w:tbl": function(element) {
return readXmlElements(element.children).map(documents.Table);
},
"w:tr": function(element) {
@@ -216,7 +216,10 @@ var ignoreElements = {
"w:commentRangeEnd": true,
"w:commentReference": true,
"w:del": true,
- "w:footnoteRef": true
+ "w:footnoteRef": true,
+ "w:tblPr": true,
+ "w:tblGrid": true,
+ "w:tcPr": true
};
function notNull(value) {