Check explicitly for None, so we can write False
authorJohan Dahlin <johan@src.gnome.org>
Mon, 28 Apr 2008 18:58:28 +0000 (18:58 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Mon, 28 Apr 2008 18:58:28 +0000 (18:58 +0000)
svn path=/trunk/; revision=248

giscanner/xmlwriter.py

index 2528527..2063106 100644 (file)
@@ -78,7 +78,7 @@ class XMLWriter(object):
 
     def write_tag(self, tag_name, attributes, data=None):
         prefix = '<%s' % (tag_name,)
-        if data:
+        if data is not None:
             suffix = '>%s</%s>' % (data, tag_name)
         else:
             suffix = '/>'