From 47b0e47e2bd117c5a102c19e5e6bcb6088dbdd90 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 12 Dec 2013 22:41:08 +0000 Subject: Read document run matchers --- mammoth/document_matchers.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mammoth/document_matchers.py') 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"]) -- cgit v1.2.3