summaryrefslogtreecommitdiffstats
path: root/Lib/xml/etree/ElementInclude.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xml/etree/ElementInclude.py')
-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 dde0a41..84fd754 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]