diff --git a/openerp/tools/mail.py b/openerp/tools/mail.py index 5f8c65c1d9b..39d918da97b 100644 --- a/openerp/tools/mail.py +++ b/openerp/tools/mail.py @@ -133,9 +133,8 @@ def html_email_clean(html): html = ustr(html) # 1. -> \n, because otherwise the tree is obfuscated - br_tags = re.compile(r'([<]\s*br\s*\/?[>])') + br_tags = re.compile(r'([<]\s*[bB][rR]\s*\/?[>])') html = _replace_matching_regex(br_tags, html, '__BR_TAG__') - # TDE note: seems to have lots of

in emails... needs to be checks, could be cleaned # 2. form a tree, handle (currently ?) pure-text by enclosing them in a pre root = lxml.html.fromstring(html)