Opened 5 years ago
Closed 5 years ago
#31175 closed Cleanup/optimization (wontfix)
Remove newline in Textarea widget. — at Version 2
Reported by: | python2and3developer | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Normal | Keywords: | template, forms, textarea |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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>
Change History (2)
comment:1 by , 5 years ago
Type: | Uncategorized → Bug |
---|
comment:2 by , 5 years ago
Description: | modified (diff) |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Summary: | Extra spaces in textarea widget template → Remove newline in Textarea widget. |
Type: | Bug → Cleanup/optimization |
Version: | 3.0 → master |
Note:
See TracTickets
for help on using tickets.
This newline is required to fix #8627.