aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-06-08 22:05:03 +0100
committerMichael Williamson <mike@zwobble.org>2014-06-08 22:05:03 +0100
commita7631d5d73d563967afcc529b35bf10f87d29035 (patch)
tree60e39aa2d61a3e7382e53077dfa020f407f34791
parent3c525db3fba3e408db289b4714352b9cdde797db (diff)
Rename styles argument to style_map
-rw-r--r--mammoth/conversion.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mammoth/conversion.py b/mammoth/conversion.py
index 56d0fae..2d3b043 100644
--- a/mammoth/conversion.py
+++ b/mammoth/conversion.py
@@ -16,9 +16,9 @@ def convert_document_element_to_html(element, style_map=None, convert_image=None
class DocumentConverter(object):
- def __init__(self, styles, convert_image):
+ def __init__(self, style_map, convert_image):
self.messages = []
- self._styles = styles
+ self._style_map = style_map
self._converters = {
documents.Document: self._convert_document,
documents.Paragraph: self._convert_paragraph,
@@ -99,7 +99,7 @@ class DocumentConverter(object):
def _find_html_path(self, element, element_type, default):
- for style in self._styles:
+ for style in self._style_map:
document_matcher = style.document_matcher
if _document_matcher_matches(document_matcher, element, element_type):
return style.html_path