diff --git a/apps/common/widgets.py b/apps/common/widgets.py index c2f7906c56..46daccd388 100644 --- a/apps/common/widgets.py +++ b/apps/common/widgets.py @@ -88,12 +88,13 @@ class TextAreaDiv(forms.widgets.Widget): def render(self, name, value, attrs=None): if value is None: - value = '' - final_attrs = self.build_attrs(attrs, name=name) - result = mark_safe(u'%s' % (flatatt(final_attrs), - conditional_escape(force_unicode(value)))) + value = u'' - return mark_safe(result.replace('\n', '
')) + flat_attrs = flatatt(self.build_attrs(attrs, name=name)) + content = conditional_escape(force_unicode(value)) + # Not needed for
 - .replace(u'\n', u'
').replace(u' ', u' ') + result = u'%s
' % (flat_attrs, content) + return mark_safe(result) # From: http://www.peterbe.com/plog/emailinput-html5-django