aboutsummaryrefslogtreecommitdiff
path: root/mammoth/document_matchers.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-12 22:41:08 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-12 22:41:08 +0000
commit47b0e47e2bd117c5a102c19e5e6bcb6088dbdd90 (patch)
tree18bc3f98f1c76fc878c076d6e32c221cd1f87e3c /mammoth/document_matchers.py
parentdae26433ca6f7211b2eca03d2079c86c2e2dcfc7 (diff)
Read document run matchers
Diffstat (limited to 'mammoth/document_matchers.py')
-rw-r--r--mammoth/document_matchers.py7
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"])