Ticket #13385: textarea.patch
File textarea.patch, 548 bytes (added by , 15 years ago) |
---|
-
widgets.py
old new 283 283 def render(self, name, value, attrs=None): 284 284 if value is None: value = '' 285 285 final_attrs = self.build_attrs(attrs, name=name) 286 return mark_safe(u'<textarea%s> %s</textarea>' % (flatatt(final_attrs),286 return mark_safe(u'<textarea%s>\n%s</textarea>' % (flatatt(final_attrs), 287 287 conditional_escape(force_unicode(value)))) 288 288 289 289 class DateInput(Input):