Every radio button is now properly shown on a new line.
Update issue 655
Owner: ljvderijk
Fixes Issue 655.
--- a/app/soc/views/helper/surveys.py Sat Jul 25 01:09:46 2009 +0530
+++ b/app/soc/views/helper/surveys.py Sat Jul 25 13:13:20 2009 +0200
@@ -40,7 +40,6 @@
from django.utils.datastructures import SortedDict
from django.utils.encoding import force_unicode
from django.utils.html import escape
-from django.utils.safestring import mark_safe
from soc.logic import dicts
from soc.logic.lists import Lists
@@ -912,7 +911,9 @@
"""Outputs set of radio fields in a div.
"""
- return mark_safe(u'<div class="quant_radio">\n%s\n</div>'
+ from django.utils.html import linebreaks
+
+ return linebreaks(u'<div class="quant_radio">%s</div>'
% u'\n'.join([u'%s' % force_unicode(w) for w in self]))