diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-05-11 18:01:31 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-05-11 18:01:31 +0100 |
| commit | 61e88321b9e5dc67a0373edc69f8114db8c1d3b7 (patch) | |
| tree | 3f43fd006b6c095f91c2424086b273928881336c /mammoth/document_matchers.py | |
| parent | 7e57058cf120717cc2d2fea3b897b12c3891b28a (diff) | |
Rename existing concept of style names to style IDs to match docx
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" |
