do not use <br> in widgets stable
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Tue, 19 May 2009 11:44:06 +0200
branchstable
changeset 1863 9a02979a2c00
parent 1842 c7a22540d6f7
child 1864 4ceaf8f2709b
do not use <br> in widgets
web/formrenderers.py
--- a/web/formrenderers.py	Mon May 18 14:22:26 2009 +0200
+++ b/web/formrenderers.py	Tue May 19 11:44:06 2009 +0200
@@ -83,13 +83,13 @@
         return tags.label(label, **attrs)
 
     def render_help(self, form, field):
-        help = [ u'<br/>' ]
+	help = []
         descr = field.help
         if descr:
-            help.append('<span class="helper">%s</span>' % form.req._(descr))
+            help.append('<div class="helper">%s</div>' % form.req._(descr))
         example = field.example_format(form.req)
         if example:
-            help.append('<span class="helper">(%s: %s)</span>'
+            help.append('<div class="helper">(%s: %s)</div>'
                         % (form.req._('sample format'), example))
         return u'&nbsp;'.join(help)