web/formrenderers.py
branchstable
changeset 1867 b2fe73a55899
parent 1863 9a02979a2c00
child 1946 d60ddfc4bb09
--- a/web/formrenderers.py	Tue May 19 13:08:51 2009 +0200
+++ b/web/formrenderers.py	Tue May 19 13:21:29 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)