Ticket #13385: textarea.patch

File textarea.patch, 548 bytes (added by William Grzybowski, 15 years ago)

Textarea render

  • widgets.py

    old new  
    283283    def render(self, name, value, attrs=None):
    284284        if value is None: value = ''
    285285        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),
    287287                conditional_escape(force_unicode(value))))
    288288
    289289class DateInput(Input):
Back to Top