From 52a0281824ebe97f4233066b73a1e9739b639d9d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 13 Dec 2013 17:41:57 +0000 Subject: Parse ordered list document matcher --- 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 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): -- cgit v1.2.3