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('', '*')