Fix xml.etree.ElementInclude to include the tail of the current node. Issue #6231

This commit is contained in:
Florent Xicluna 2010-08-08 23:08:41 +00:00
parent 14bd1c3b2e
commit ba8a98600e
3 changed files with 22 additions and 1 deletions

View file

@ -125,7 +125,7 @@ def include(elem, loader=None):
)
if i:
node = elem[i-1]
node.tail = (node.tail or "") + text
node.tail = (node.tail or "") + text + (e.tail or "")
else:
elem.text = (elem.text or "") + text + (e.tail or "")
del elem[i]