From bdc73d3c1ecfe32391d228b5c001abe4da01a670 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 6 Jul 2014 17:38:03 +0100 Subject: Get top-level table test passing --- mammoth/docx/document_xml.py | 3 +++ tests/mammoth_tests.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py index 125b35e..83ddcdd 100644 --- a/mammoth/docx/document_xml.py +++ b/mammoth/docx/document_xml.py @@ -31,6 +31,9 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file): "w:del", "w:pPr", "w:rPr", + "w:tblPr", + "w:tblGrid", + "w:tcPr", ]) def handler(name): diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index deaeb39..0b3bf0f 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -29,7 +29,7 @@ def simple_list_is_converted_to_list_elements(): assert_equal("", result.value) -#~ @istest +@istest def word_tables_are_converted_to_html_tables(): expected_html = ("

Above

" + "" + -- cgit v1.2.3