Skip to content
Snippets Groups Projects
Commit 7a928b15 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] tools: mail: fixed last commit, solving an issue with the html2plaintext...

[FIX] tools: mail: fixed last commit, solving an issue with the html2plaintext introduced another issue with notes. Reverting to the first version.
parent 50b48e0d
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,8 @@ def html2plaintext(html, body_id=None, encoding='utf-8'):
html = html.replace('&lt;', '<')
# 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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment