projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b48e0
)
[FIX] tools: mail: fixed last commit, solving an issue with the html2plaintext introd...
author
Thibault Delavallée
<tde@openerp.com>
Fri, 11 Jul 2014 13:31:44 +0000
(15:31 +0200)
committer
Thibault Delavallée
<tde@openerp.com>
Fri, 11 Jul 2014 14:21:01 +0000
(16:21 +0200)
openerp/tools/mail.py
patch
|
blob
|
history
diff --git
a/openerp/tools/mail.py
b/openerp/tools/mail.py
index
7e2c798
..
425a7ff
100644
(file)
--- a/
openerp/tools/mail.py
+++ b/
openerp/tools/mail.py
@@
-215,7
+215,8
@@
def html2plaintext(html, body_id=None, encoding='utf-8'):
html = html.replace('<', '<')
# strip all lines
- html = ''.join([x.strip() for x in html.splitlines(True)])
+ html = '\n'.join([x.strip() for x in html.splitlines()])
+ html = html.replace('\n' * 2, '\n')
for i, url in enumerate(url_index):
if i == 0: