# HG changeset patch # User Lennard de Rijk # Date 1248520400 -7200 # Node ID b96ba702e82cb13cf0b41fe39c096d32f9b9128f # Parent 0ede2f3adbc14c70d3152975a860fd8d47ae2cbb Every radio button is now properly shown on a new line. Update issue 655 Owner: ljvderijk Fixes Issue 655. diff -r 0ede2f3adbc1 -r b96ba702e82c app/soc/views/helper/surveys.py --- 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'
\n%s\n
' + from django.utils.html import linebreaks + + return linebreaks(u'
%s
' % u'\n'.join([u'%s' % force_unicode(w) for w in self]))