From dae26433ca6f7211b2eca03d2079c86c2e2dcfc7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 12 Dec 2013 22:37:04 +0000 Subject: Read document paragraphs with style names --- mammoth/document_matchers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mammoth/document_matchers.py') diff --git a/mammoth/document_matchers.py b/mammoth/document_matchers.py index 5f1af2e..8bae5b1 100644 --- a/mammoth/document_matchers.py +++ b/mammoth/document_matchers.py @@ -1,8 +1,8 @@ import collections -def paragraph(): - return ParagraphMatcher() +def paragraph(style_name=None): + return ParagraphMatcher(style_name) -ParagraphMatcher = collections.namedtuple("ParagraphMatcher", []) +ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_name"]) -- cgit v1.2.3