[FIX] Fixed bug due to copy-and-paste: outertext is now valid

bzr revid: tde@openerp.com-20131024083955-ipbsf8rxbzm0mag3
This commit is contained in:
Thibault Delavallée
2013-10-24 10:39:55 +02:00
parent e14de7a637
commit dbe253b0e4
+1 -1
View File
@@ -213,7 +213,7 @@ def html_email_clean(html, remove=False, shorten=False, max_length=300):
read_more_link_node = _create_node('a', 'read more', None, {'href': '#', 'class': 'oe_mail_expand'})
read_more_node.append(read_more_link_node)
# create outertext node
overtext_node = _create_node('span', outertext[truncate_idx:])
overtext_node = _create_node('span', outertext)
# tag node
overtext_node.set('in_overlength', '1')
# add newly created nodes in dom