From a7631d5d73d563967afcc529b35bf10f87d29035 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 8 Jun 2014 22:05:03 +0100 Subject: Rename styles argument to style_map --- mammoth/conversion.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mammoth') 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 -- cgit v1.2.3