#31175: Remove newline in Textarea widget.
-------------------------------------+-------------------------------------
     Reporter:                       |                    Owner:  nobody
  python2and3developer               |
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Forms                |                  Version:  master
     Severity:  Normal               |               Resolution:  wontfix
     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
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * 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>
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/078.4e21a36e36a1b650c13a3652240a637e%40djangoproject.com.

Reply via email to