Commit 5c41977b authored by Romain Courteaud's avatar Romain Courteaud 🐸

Return the text content from file if it exists.

getTextContent is now more consistent with the other accessor (getContentType, getTitle, ...).
parent bdb0dd19
...@@ -442,7 +442,7 @@ class EmailDocument(TextDocument): ...@@ -442,7 +442,7 @@ class EmailDocument(TextDocument):
to display the content of an email. to display the content of an email.
""" """
self._checkConversionFormatPermission(None) self._checkConversionFormatPermission(None)
if not self.hasFile() or self._baseGetTextContent() is not None: if not self.hasFile():
# Return the standard text content if no file was provided # Return the standard text content if no file was provided
# Or standard text content is not empty. # Or standard text content is not empty.
if default is _MARKER: if default is _MARKER:
......
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