don't optimize empty strings

This commit is contained in:
Just van Rossum 2003-07-10 14:26:06 +00:00
parent aefae5570d
commit 87316ec962
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class DumbXMLWriter:
self.writeln("</%s>" % element)
def simpleElement(self, element, value=None):
if value:
if value is not None:
value = _encode(value)
self.writeln("<%s>%s</%s>" % (element, value, element))
else: