~openerp-dev/openobject-server/7.0-mail_issues-adh-1168376

« back to all changes in this revision

Viewing changes to openerp/tools/mail.py

  • Committer: Anand Dharampuriya(OpenERP)
  • Date: 2014-06-06 12:43:00 UTC
  • Revision ID: adh@tinyerp.com-20140606124300-l0vkegytaa2tq2qh
[IMP] Improve code while you get project issue from mail after configure incomming mail server it shows > instead of > sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
    html = re.sub('<br\s*/?>', '\n', html)
212
212
    html = re.sub('<.*?>', ' ', html)
213
213
    html = html.replace(' ' * 2, ' ')
214
 
    html = html.replace('&lt;', '<')
215
214
    html = html.replace('&gt;', '>')
216
 
    html = html.replace('&amp;', '&')
217
215
 
218
216
    # strip all lines
219
217
    html = '\n'.join([x.strip() for x in html.splitlines()])