Ticket #13385: textarea-trunk.diff

File textarea-trunk.diff, 600 bytes (added by William Grzybowski, 15 years ago)

textarea patch for svn trunk

  • django/forms/widgets.py

     
    290290    def render(self, name, value, attrs=None):
    291291        if value is None: value = ''
    292292        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),
    294294                conditional_escape(force_unicode(value))))
    295295
    296296class DateInput(Input):
Back to Top