[Erp5-report] r22611 - /erp5/trunk/products/ERP5/Document/EmailDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jul 21 19:06:11 CEST 2008
Author: nicolas
Date: Mon Jul 21 19:06:05 2008
New Revision: 22611
URL: http://svn.erp5.org?rev=22611&view=rev
Log:
Insert Quoting content in blockquote element
Modified:
erp5/trunk/products/ERP5/Document/EmailDocument.py
Modified: erp5/trunk/products/ERP5/Document/EmailDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/EmailDocument.py?rev=22611&r1=22610&r2=22611&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/EmailDocument.py (original)
+++ erp5/trunk/products/ERP5/Document/EmailDocument.py Mon Jul 21 19:06:05 2008
@@ -352,7 +352,8 @@
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 @@
"""
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',)
More information about the Erp5-report
mailing list