diff options
Diffstat (limited to 'mammoth/document_matchers.py')
| -rw-r--r-- | mammoth/document_matchers.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mammoth/document_matchers.py b/mammoth/document_matchers.py index ed4171b..014e4e3 100644 --- a/mammoth/document_matchers.py +++ b/mammoth/document_matchers.py @@ -1,17 +1,17 @@ import collections -def paragraph(style_name=None, numbering=None): - return ParagraphMatcher(style_name, numbering) +def paragraph(style_id=None, numbering=None): + return ParagraphMatcher(style_id, numbering) -ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_name", "numbering"]) +ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_id", "numbering"]) ParagraphMatcher.element_type = "paragraph" -def run(style_name=None): - return RunMatcher(style_name) +def run(style_id=None): + return RunMatcher(style_id) -RunMatcher = collections.namedtuple("RunMatcher", ["style_name"]) +RunMatcher = collections.namedtuple("RunMatcher", ["style_id"]) RunMatcher.element_type = "run" |
