blob: e7cd12cd5485edaf6160d64cff3d4e7848ce941c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import collections
def paragraph(style_name=None, numbering=None):
return ParagraphMatcher(style_name, numbering)
ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_name", "numbering"])
ParagraphMatcher.element_type = "paragraph"
def run(style_name=None):
return RunMatcher(style_name)
RunMatcher = collections.namedtuple("RunMatcher", ["style_name"])
|