Opened 5 years ago

Last modified 5 years ago

#31175 closed Cleanup/optimization

Extra spaces in textarea widget template — at Initial Version

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

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>

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top