summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorDmitry <ivanchenko.dimitry@gmail.com>2017-01-07 02:11:32 +0200
committerTim Graham <timograham@gmail.com>2017-01-06 19:11:32 -0500
commit12cefee5d84b3569ccbde03167c7853e8dac638f (patch)
tree95cf565319004d16214ba3747c2562550243df59 /django/forms
parent7a6863c3380c85c6d93003a31c4fa3d83826832b (diff)
Refs #15667 -- Prevented newlines in attrs.html widget rendering.
Removed the trailing newline from widget attrs.html template. The solution may be revisited by fixing refs #9198 but not for Django 1.11. Thanks Dmitry Ivanchenko for the report and Preston Timmons for advice.
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/templates/django/forms/widgets/attrs.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/templates/django/forms/widgets/attrs.html b/django/forms/templates/django/forms/widgets/attrs.html
index e673399dbb..caca0cd80c 100644
--- a/django/forms/templates/django/forms/widgets/attrs.html
+++ b/django/forms/templates/django/forms/widgets/attrs.html
@@ -1 +1 @@
-{% for name, value in widget.attrs.items %} {{ name }}{% if not value is True %}="{{ value }}"{% endif %}{% endfor %}
+{% for name, value in widget.attrs.items %} {{ name }}{% if not value is True %}="{{ value }}"{% endif %}{% endfor %} \ No newline at end of file