Ticket #13385: textarea-trunk.diff
File textarea-trunk.diff, 600 bytes (added by , 15 years ago) |
---|
-
django/forms/widgets.py
290 290 def render(self, name, value, attrs=None): 291 291 if value is None: value = '' 292 292 final_attrs = self.build_attrs(attrs, name=name) 293 return mark_safe(u'<textarea%s> %s</textarea>' % (flatatt(final_attrs),293 return mark_safe(u'<textarea%s>\n%s</textarea>' % (flatatt(final_attrs), 294 294 conditional_escape(force_unicode(value)))) 295 295 296 296 class DateInput(Input):