#19251: Normalize newlines from Textarea widgets
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Design
Has patch: 1 | decision needed
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by claudep):
Replying to [comment:2 aaugustin]:
> If browsers generally send CRLF and we want to normalize, shouldn't we
normalize to CRLF — even if our personal tastes are different — to avoid
creating regressions for Windows users? For instance if they're building
text files from user input, suddenly their files may not display correctly
any longer.
If browsers would systematically return CRLF, you would be right. But this
isn't always true, so the situation is already inconsistent and somewhat
broken.
> Generally speaking, Django is very careful about not altering data sent
by the browsers. For instance it doesn't strip whitespace, even though
it's a very common request, and it's the right thing to do 99% of the
time.
Stripping whitespace is semantically altering content, as leading/trailing
space may be wanted and significant (albeit seldom). Changing new line
format does not change the content (still semantically speaking), this is
only a technical artefact.
--
Ticket URL: <https://code.djangoproject.com/ticket/19251#comment:3>
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.