aboutsummaryrefslogtreecommitdiff
path: root/mammoth/conversion.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-06-08 22:10:01 +0100
committerMichael Williamson <mike@zwobble.org>2014-06-08 22:10:01 +0100
commit2c66c1e16ef035017d68b0023d02a1507a2c43cd (patch)
tree9a25c8cda1a1ad07d2f47d7a7e46ea2b005c5555 /mammoth/conversion.py
parenta7631d5d73d563967afcc529b35bf10f87d29035 (diff)
Use style_name when converting paragraphs
Diffstat (limited to 'mammoth/conversion.py')
-rw-r--r--mammoth/conversion.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mammoth/conversion.py b/mammoth/conversion.py
index 2d3b043..6c13225 100644
--- a/mammoth/conversion.py
+++ b/mammoth/conversion.py
@@ -116,6 +116,9 @@ def _document_matcher_matches(matcher, element, element_type):
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
matcher.numbering == element.numbering