aboutsummaryrefslogtreecommitdiff
path: root/mammoth/document_matchers.py
blob: 5cfe92d660fe3b5046d9ebb186dd1945f46d3e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import collections


def paragraph(style_name=None, numbering=None):
    return ParagraphMatcher(style_name, numbering)


ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_name", "numbering"])


def run(style_name=None):
    return RunMatcher(style_name)


RunMatcher = collections.namedtuple("RunMatcher", ["style_name"])