aboutsummaryrefslogtreecommitdiff
path: root/mammoth/document_matchers.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-13 17:41:57 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-13 17:41:57 +0000
commit52a0281824ebe97f4233066b73a1e9739b639d9d (patch)
tree6e704b641c11b97fc141a7c0f4a44269a3f0ec7f /mammoth/document_matchers.py
parentd091e47adf6cd69d986cac935de9d61b7da17f82 (diff)
Parse ordered list document matcher
Diffstat (limited to 'mammoth/document_matchers.py')
-rw-r--r--mammoth/document_matchers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mammoth/document_matchers.py b/mammoth/document_matchers.py
index 1049c94..5cfe92d 100644
--- a/mammoth/document_matchers.py
+++ b/mammoth/document_matchers.py
@@ -1,11 +1,11 @@
import collections
-def paragraph(style_name=None):
- return ParagraphMatcher(style_name)
+def paragraph(style_name=None, numbering=None):
+ return ParagraphMatcher(style_name, numbering)
-ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_name"])
+ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_name", "numbering"])
def run(style_name=None):