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): ...@@ -352,7 +352,8 @@ class EmailDocument(File, TextDocument):
if body: if body:
return '> ' + str(body).replace('\n', '\n> ') return '> ' + str(body).replace('\n', '\n> ')
elif self.getTextFormat() == 'text/html': elif self.getTextFormat() == 'text/html':
return self.serializeAndCleanHtmlContentForFCKEditor() return '<br/><blockquote type="cite">\n%s\n</blockquote>' %\
self.serializeAndCleanHtmlContentForFCKEditor()
return '' return ''
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
...@@ -364,6 +365,8 @@ class EmailDocument(File, TextDocument): ...@@ -364,6 +365,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:
return None
if not import_libxml2: if not import_libxml2:
return html_text return html_text
exclude_tag_list = ('html', 'head', 'body',) 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