From 91a7928116c5157b451892e586b684744dbe4174 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 5 Jul 2014 19:54:15 +0100 Subject: Get table conversion working --- lib/docx/document-xml-reader.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/docx/document-xml-reader.js') 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) { -- cgit v1.2.3