diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-04-08 18:21:11 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-04-08 18:21:38 +0100 |
| commit | b5de440655ace03fb512a67429baf3123126ab0e (patch) | |
| tree | 28338421ffc90e19d98acfe957439e8a95f92855 /mammoth/conversion.py | |
| parent | 496a1f7b16fc8616c12f3ebe469c7bfb18a5c00c (diff) | |
Make style names in style mappings case insensitive
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 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 |
