From 85235a9cf69f847c2451eacaf44a242e6433937a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 29 Nov 2016 21:42:49 +0000 Subject: Introduce string matchers for matching style name --- mammoth/conversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mammoth/conversion.py') 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 -- cgit v1.2.3