From b5de440655ace03fb512a67429baf3123126ab0e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 8 Apr 2015 18:21:11 +0100 Subject: Make style names in style mappings case insensitive --- mammoth/conversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mammoth') diff --git a/mammoth/conversion.py b/mammoth/conversion.py index de616ea..e351395 100644 --- a/mammoth/conversion.py +++ b/mammoth/conversion.py @@ -227,7 +227,7 @@ def _document_matcher_matches(matcher, element, element_type): matcher.style_id == element.style_id ) and ( matcher.style_name is None or - matcher.style_name == element.style_name + element.style_name is not None and (matcher.style_name.upper() == element.style_name.upper()) ) and ( element_type != "paragraph" or matcher.numbering is None or -- cgit v1.2.3