add space between a checkbox and its label
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 16 Feb 2010 09:25:18 +0100
changeset 4593 d0b5ef72a492
parent 4592 ddbab12acae0
child 4594 7b9824d1b734
add space between a checkbox and its label
web/formwidgets.py
--- a/web/formwidgets.py	Tue Feb 16 09:24:40 2010 +0100
+++ b/web/formwidgets.py	Tue Feb 16 09:25:18 2010 +0100
@@ -318,7 +318,7 @@
                 iattrs['checked'] = u'checked'
             tag = tags.input(name=field.input_name(form, self.suffix),
                              type=self.type, value=value, **iattrs)
-            options.append(tag + label)
+            options.append(u'%s&#160;%s' % (tag, label))
         return sep.join(options)