changeset 45:722101222098

ElementTree - Fix text output
author Bastian Blank <bblank@thinkmo.de>
date Sun, 27 Jul 2008 15:51:21 +0200
parents 53378e9b1814
children c228aba7258c
files emeraldtree/ElementTree.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/emeraldtree/ElementTree.py	Sun Jul 27 15:47:43 2008 +0200
+++ b/emeraldtree/ElementTree.py	Sun Jul 27 15:51:21 2008 +0200
@@ -883,8 +883,6 @@
 def _serialize_text(write, elem, encoding):
     for part in elem.itertext():
         write(part.encode(encoding))
-    if elem.tail:
-        write(elem.tail.encode(encoding))
 
 ##
 # Registers a namespace prefix.  The registry is global, and any