From e2835ec85cd6b33de61da31ceea7d2b9afe64954 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 28 Jul 2012 05:41:10 -0400 Subject: [PATCH] Change document content windows from a
to a
 to
 conserve space formatting

---
 apps/common/widgets.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

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