summaryrefslogtreecommitdiff
path: root/Lib/xml
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-08-08 23:08:41 +0000
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-08-08 23:08:41 +0000
commitceb51dc0d5c909cff6db615c646a858773f13073 (patch)
treeed7f80103ee026724e2867513066a4c9c4f261fc /Lib/xml
parent4e263603dad0920ea199dee19ab3d2e9c7489068 (diff)
downloadcpython-ceb51dc0d5c909cff6db615c646a858773f13073.tar.gz
Fix xml.etree.ElementInclude to include the tail of the current node. Issue #6231
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/etree/ElementInclude.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementInclude.py b/Lib/xml/etree/ElementInclude.py
index dde0a41531..84fd7548b2 100644
--- a/Lib/xml/etree/ElementInclude.py
+++ b/Lib/xml/etree/ElementInclude.py
@@ -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]