Commit e90c258a authored by Nicolas Delaby's avatar Nicolas Delaby

Insert Quoting content in blockquote element

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22611 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6da5401c
......@@ -352,7 +352,8 @@ class EmailDocument(File, TextDocument):
if body:
return '> ' + str(body).replace('\n', '\n> ')
elif self.getTextFormat() == 'text/html':
return self.serializeAndCleanHtmlContentForFCKEditor()
return '<br/><blockquote type="cite">\n%s\n</blockquote>' %\
self.serializeAndCleanHtmlContentForFCKEditor()
return ''
security.declareProtected(Permissions.AccessContentsInformation,
......@@ -364,6 +365,8 @@ class EmailDocument(File, TextDocument):
"""
if html_text is None:
html_text = self.getTextContent()
if html_text is None:
return None
if not import_libxml2:
return html_text
exclude_tag_list = ('html', 'head', 'body',)
......
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