#24871: Textarea widget has redundant \r\n
----------------------------------+--------------------------------------
     Reporter:  tompecina         |                    Owner:  nobody
         Type:  Bug               |                   Status:  new
    Component:  Forms             |                  Version:  1.8
     Severity:  Normal            |               Resolution:
     Keywords:  textarea, widget  |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------

Comment (by timgraham):

 For what it's worth, Rails also
 
[https://github.com/rails/rails/blob/390449ab8c55dacc08517bc270c6203bb1f50e02/actionview/lib/action_view/helpers/tag_helper.rb#L25-L27
 adds a leading newline] ([https://github.com/rails/rails/issues/393
 issue]).

 I don't see a good way of making the newline conditional on whether the
 widget is being rendered as HTML or XHTML as the widget doesn't have
 knowledge of that.

--
Ticket URL: <https://code.djangoproject.com/ticket/24871#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.4875386b5fc086865cef3c1668702ec7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to