diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-29 21:42:49 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-29 21:42:49 +0000 |
| commit | 85235a9cf69f847c2451eacaf44a242e6433937a (patch) | |
| tree | f87a13301a134dc10f3190ecbb7a6d45e23f89ae /mammoth/conversion.py | |
| parent | 15984eb246379f80050ee2bd816dc9bb2a1ffc5f (diff) | |
Introduce string matchers for matching style name
Diffstat (limited to 'mammoth/conversion.py')
| -rw-r--r-- | mammoth/conversion.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/conversion.py b/mammoth/conversion.py index 2c2afa6..bbb4f86 100644 --- a/mammoth/conversion.py +++ b/mammoth/conversion.py @@ -307,7 +307,7 @@ def _document_matcher_matches(matcher, element, element_type): matcher.style_id == element.style_id ) and ( matcher.style_name is None or - element.style_name is not None and (matcher.style_name.upper() == element.style_name.upper()) + element.style_name is not None and (matcher.style_name.matches(element.style_name)) ) and ( element_type != "paragraph" or matcher.numbering is None or |
