diff options
Diffstat (limited to 'mammoth/document_matchers.py')
| -rw-r--r-- | mammoth/document_matchers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mammoth/document_matchers.py b/mammoth/document_matchers.py index 8bae5b1..1049c94 100644 --- a/mammoth/document_matchers.py +++ b/mammoth/document_matchers.py @@ -6,3 +6,10 @@ def paragraph(style_name=None): ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_name"]) + + +def run(style_name=None): + return RunMatcher(style_name) + + +RunMatcher = collections.namedtuple("RunMatcher", ["style_name"]) |
