From 2c66c1e16ef035017d68b0023d02a1507a2c43cd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 8 Jun 2014 22:10:01 +0100 Subject: Use style_name when converting paragraphs --- mammoth/conversion.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mammoth/conversion.py') diff --git a/mammoth/conversion.py b/mammoth/conversion.py index 2d3b043..6c13225 100644 --- a/mammoth/conversion.py +++ b/mammoth/conversion.py @@ -115,6 +115,9 @@ def _document_matcher_matches(matcher, element, element_type): matcher.element_type == element_type and ( matcher.style_id is None or matcher.style_id == element.style_id + ) and ( + matcher.style_name is None or + matcher.style_name == element.style_name ) and ( element_type != "paragraph" or matcher.numbering is None or -- cgit v1.2.3