From 600f03b294c12ed1d99bf2773ef6ecc8cdd23ad4 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 29 Mar 2013 16:41:30 +0100 Subject: [PATCH] [FIX] html2plaintext: bug 1159782 bzr revid: chm@openerp.com-20130329154130-56wjtfrj41eatxl6 --- openerp/tools/mail.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openerp/tools/mail.py b/openerp/tools/mail.py index 933c8927d2c..c516cb7d643 100644 --- a/openerp/tools/mail.py +++ b/openerp/tools/mail.py @@ -185,6 +185,8 @@ def html2plaintext(html, body_id=None, encoding='utf-8'): url_index.append(url) html = ustr(etree.tostring(tree, encoding=encoding)) + # \r char is converted into , must remove it + html = html.replace(' ', '') html = html.replace('', '*').replace('', '*') html = html.replace('', '*').replace('', '*')