From e90c258ab775df984487279c9c818ff528ea55db Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Mon, 21 Jul 2008 17:06:05 +0000 Subject: [PATCH] Insert Quoting content in blockquote element git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22611 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/EmailDocument.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/EmailDocument.py b/product/ERP5/Document/EmailDocument.py index 1c26df2dfc..35f5e1bf78 100644 --- a/product/ERP5/Document/EmailDocument.py +++ b/product/ERP5/Document/EmailDocument.py @@ -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',) -- 2.30.9