#19251: Normalize newlines from Textarea widgets
---------------------------------------+------------------------
               Reporter:  claudep      |          Owner:  nobody
                   Type:  New feature  |         Status:  new
              Component:  Forms        |        Version:  master
               Severity:  Normal       |       Keywords:
           Triage Stage:  Unreviewed   |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+------------------------
 Currently, newlines from Textarea may come in at least two different
 formats. Most browsers send them as CRLF. But when sent from JS (AJAX), it
 depends on the browser (Firefox and WebKit seem to send LF-only).

 I would suggest to normalize them to LF in all cases. This may also solve
 the issue about different char counting between client-side and server-
 side (http://groups.google.com/group/django-
 
users/browse_thread/thread/3161244a2f119444/5fad134a89039d7b?lnk=gst&q=textarea%2C+max_length#5fad134a89039d7b).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19251>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to