From 94638afbc228c9005e302ab6bc3d16c4e3e32b1d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 14 Dec 2013 16:16:51 +0000 Subject: Add conversion of paragraphs using styles --- mammoth/document_matchers.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mammoth/document_matchers.py') diff --git a/mammoth/document_matchers.py b/mammoth/document_matchers.py index 5cfe92d..e7cd12c 100644 --- a/mammoth/document_matchers.py +++ b/mammoth/document_matchers.py @@ -6,6 +6,7 @@ def paragraph(style_name=None, numbering=None): ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_name", "numbering"]) +ParagraphMatcher.element_type = "paragraph" def run(style_name=None): -- cgit v1.2.3