common/uilib.py
branchtls-sprint
changeset 862 ee560986e211
parent 709 b21ee900c732
child 980 59552ba2015f
--- a/common/uilib.py	Thu Feb 19 21:31:18 2009 +0100
+++ b/common/uilib.py	Thu Feb 19 21:32:23 2009 +0100
@@ -210,7 +210,8 @@
     value = u'<%s' % tag
     if attrs:
         value += u' ' + u' '.join(u'%s="%s"' % (attr, html_escape(unicode(value)))
-                                  for attr, value in attrs.items())
+                                  for attr, value in attrs.items()
+                                  if value is not None)
     if content:
         value += u'>%s</%s>' % (html_escape(unicode(content)), tag)
     else: