[FIX] tools: html_email_clean: remove blockquote in any node, not just firs childs of root.

bzr revid: tde@openerp.com-20121107105031-xf0u71q3chx0chnv
This commit is contained in:
Thibault Delavallée
2012-11-07 11:50:31 +01:00
parent 4d89845de6
commit 688b6babed
+1 -1
View File
@@ -138,7 +138,7 @@ def html_email_clean(html):
root = lxml.html.fromstring(html)
# 3. remove blockquotes
quotes = [el for el in root.iterchildren(tag='blockquote')]
quotes = [el for el in root.getiterator(tag='blockquote')]
for node in quotes:
node.getparent().remove(node)