summaryrefslogtreecommitdiff
path: root/mammoth/conversion.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-29 21:42:49 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-29 21:42:49 +0000
commit85235a9cf69f847c2451eacaf44a242e6433937a (patch)
treef87a13301a134dc10f3190ecbb7a6d45e23f89ae /mammoth/conversion.py
parent15984eb246379f80050ee2bd816dc9bb2a1ffc5f (diff)
Introduce string matchers for matching style name
Diffstat (limited to 'mammoth/conversion.py')
-rw-r--r--mammoth/conversion.py2
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