[FIX] tools: mail: fixed / improved html_email_clean.
authorThibault Delavallée <tde@openerp.com>
Thu, 17 Oct 2013 11:05:25 +0000 (13:05 +0200)
committerThibault Delavallée <tde@openerp.com>
Thu, 17 Oct 2013 11:05:25 +0000 (13:05 +0200)
commit6bc32a8b4bec08accba274ac3c12751b285312ed
treeb00b054c384c9c56370df3b1fdbb2b1c3221d4f8
parent3333c5c329d8f2644ec0a334b56c92fd5a6ddade
[FIX] tools: mail: fixed / improved html_email_clean.
Read more links could not appear when the shorten limit was obtained
inside a quote that is removed in the process, removing the read
more link node. It now get the first parent that is not inside a
quote to be sure the link is displayed.

Added the test-case that helped find this bug.

bzr revid: tde@openerp.com-20131017110525-etn0u5s91zbnvul1
openerp/tests/test_mail.py
openerp/tests/test_mail_examples.py
openerp/tools/mail.py