#31175: Extra spaces in textarea widget template
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
python2and3developer |
Type: | Status: new
Uncategorized |
Component: Forms | Version: 3.0
Severity: Normal | Keywords: template, forms,
Triage Stage: | textarea
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The template of textarea widget has some extra spaces that are added
directily inside the textarea when its rendering on the browser.
https://github.com/django/django/blob/master/django/forms/templates/django/forms/widgets/textarea.html
{{{
<textarea name="{{ widget.name }}"{% include
"django/forms/widgets/attrs.html" %}>
{% if widget.value %}{{ widget.value }}{% endif %}</textarea>
}}}
The porposal is to change that to this (only one line, instead of two):
{{{
<textarea name="{{ widget.name }}"{% include
"django/forms/widgets/attrs.html" %}>{% if widget.value %}{{ widget.value
}}{% endif %}</textarea>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31175>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.8ab8b65bc91aced11e242fe3b5ee4c16%40djangoproject.com.