diff --git a/core/templates/core/widgets/autocomplete_select.jinja b/core/templates/core/widgets/autocomplete_select.jinja
index 8756dee5..bcdf3a76 100644
--- a/core/templates/core/widgets/autocomplete_select.jinja
+++ b/core/templates/core/widgets/autocomplete_select.jinja
@@ -1,23 +1,25 @@
-{% for js in statics.js %}
-
-{% endfor %}
-{% for css in statics.css %}
-
-{% endfor %}
-
-<{{ component }} name="{{ widget.name }}" {% include "django/forms/widgets/attrs.html" %}>
-{% for group_name, group_choices, group_index in widget.optgroups %}
- {% if group_name %}
-
+ {% for css in statics.css %}
+
+ {% endfor %}
+
+ <{{ component }} name="{{ widget.name }}" {% include "django/forms/widgets/attrs.html" %}>
+ {% for group_name, group_choices, group_index in widget.optgroups %}
+ {% if group_name %}
+
+ {% endif %}
+ {% endfor %}
+ {% if initial %}
+ {{ initial }}
{% endif %}
-{% endfor %}
-{% if initial %}
- {{ initial }}
-{% endif %}
-{{ component }}>
\ No newline at end of file
+ {{ component }}>
+{% endspaceless %}
\ No newline at end of file
diff --git a/counter/templates/counter/counter_click.jinja b/counter/templates/counter/counter_click.jinja
index c1ecbe16..65e782da 100644
--- a/counter/templates/counter/counter_click.jinja
+++ b/counter/templates/counter/counter_click.jinja
@@ -67,13 +67,13 @@
- {% for category in categories.keys() %}
+ {%- for category in categories.keys() -%}
- {% endfor %}
+ {%- endfor -%}