Mercurial > cpython-lru_cache-weakref
diff Lib/xml/etree/ElementInclude.py @ 63855:ea3a2d1bded2
Fix xml.etree.ElementInclude to include the tail of the current node. Issue #6231
| author | Florent Xicluna <florent.xicluna@gmail.com> |
|---|---|
| date | Sun, 08 Aug 2010 23:08:41 +0000 |
| parents | 7a18c2762886 |
| children | 45e3dafb3dbe |
line wrap: on
line diff
--- a/Lib/xml/etree/ElementInclude.py Sun Aug 08 22:58:56 2010 +0000 +++ b/Lib/xml/etree/ElementInclude.py Sun Aug 08 23:08:41 2010 +0000 @@ -125,7 +125,7 @@ ) 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]
