Commit eb208e45 authored by Nicolas Delaby's avatar Nicolas Delaby

Reject empty string too

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24203 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 533dec8a
...@@ -372,8 +372,8 @@ class EmailDocument(File, TextDocument): ...@@ -372,8 +372,8 @@ class EmailDocument(File, TextDocument):
""" """
if html_text is None: if html_text is None:
html_text = self.getTextContent() html_text = self.getTextContent()
if html_text is None: if not html_text:
return None return html_text
if not import_libxml2: if not import_libxml2:
return html_text return html_text
#Null char. is not allowed by parser #Null char. is not allowed by parser
......
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