Normalize newlines from Textarea widgets
|Reported by:||claudep||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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).
Change History (6)
Changed 4 years ago by claudep
comment:2 follow-up: ↓ 3 Changed 4 years ago by aaugustin
- Easy pickings unset
- Triage Stage changed from Unreviewed to Design decision needed