web/formwidgets.py
changeset 10902 41bd01ebebb4
parent 10901 ddeac3ecdd88
child 10907 9ae707db5265
--- a/web/formwidgets.py	Fri Oct 16 10:36:34 2015 +0200
+++ b/web/formwidgets.py	Fri Oct 16 11:15:50 2015 +0200
@@ -618,7 +618,7 @@
                 iattrs['checked'] = u'checked'
             tag = tags.input(name=field.input_name(form, self.suffix),
                              type=self.type, value=value, **iattrs)
-            options.append(u'%s %s' % (tag, xml_escape(label)))
+            options.append(u'<label>%s&#160;%s</label>' % (tag, xml_escape(label)))
         return sep.join(options)