diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-12 22:37:04 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-12 22:37:04 +0000 |
| commit | dae26433ca6f7211b2eca03d2079c86c2e2dcfc7 (patch) | |
| tree | c38a3b55827b063b2dee2259b2d0dfd9b70a5bda /mammoth/document_matchers.py | |
| parent | 3672775a5469e06455685d74f0f4f0ee35505ff5 (diff) | |
Read document paragraphs with style names
Diffstat (limited to 'mammoth/document_matchers.py')
| -rw-r--r-- | mammoth/document_matchers.py | 6 |
1 files changed, 3 insertions, 3 deletions
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"]) |
