{{{
<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.
* type: Uncategorized => Bug
--
Ticket URL: <https://code.djangoproject.com/ticket/31175#comment:1>
* status: new => closed
* resolution: => wontfix
* version: 3.0 => master
* type: Bug => Cleanup/optimization
Old description:
> 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>
> }}}
New description:
The template of textarea widget has some extra spaces that are added
directly 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 proposal 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>
}}}
--
Comment:
This newline is required to fix #8627.
--
Ticket URL: <https://code.djangoproject.com/ticket/31175#comment:2>