summaryrefslogtreecommitdiff
path: root/openerp/tools/mail.py
diff options
context:
space:
mode:
Diffstat (limited to 'openerp/tools/mail.py')
-rw-r--r--openerp/tools/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/tools/mail.py b/openerp/tools/mail.py
index 9b02076627e..5f82df93af9 100644
--- a/openerp/tools/mail.py
+++ b/openerp/tools/mail.py
@@ -316,7 +316,7 @@ def html_email_clean(html, remove=False, shorten=False, max_length=300, expand_o
root = lxml.html.fromstring(inner_html)
quote_tags = re.compile(r'(\n(>)+[^\n\r]*)')
- signature = re.compile(r'([-]{2,}[\s]?[\r\n]{1,2}[\s\S]+)')
+ signature = re.compile(r'(^[-]{2,}[\s]?[\r\n]{1,2}[\s\S]+)', re.M)
for node in root.iter():
# remove all tails and replace them by a span element, because managing text and tails can be a pain in the ass
if node.tail: