Commit cb98982b authored by Nicolas Delaby's avatar Nicolas Delaby

convert returns tuple

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34380 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19617244
...@@ -457,8 +457,9 @@ class EmailDocument(File, TextDocument): ...@@ -457,8 +457,9 @@ class EmailDocument(File, TextDocument):
part_encoding = part.get_content_charset() part_encoding = part.get_content_charset()
part_html = part.get_payload(decode=1) part_html = part.get_payload(decode=1)
# Invoke Document class HTML stripper # Invoke Document class HTML stripper
html_result = self.convert(format='html', text_content=part_html, mime, html_result = self.convert(format='html',
charset=part_encoding) text_content=part_html,
charset=part_encoding)
if html_result: if html_result:
# Give priority to HTML # Give priority to HTML
text_result = html_result text_result = html_result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment