Avoid malformed HTML warning from jquery-migrate

The header template we are serving through ajax is starting with
a newline, which is forbidden in XHTML, and jquery complains about
this.

We need this change to upgrade jquery later.

Change-Id: If0b926b0dcf4c465c4d8ceff1e17ee9a3df1a94b
This commit is contained in:
Radomir Dopieralski 2020-11-30 15:36:04 +01:00
parent d88c620d84
commit 03eaf9cd89

View File

@ -1,6 +1,4 @@
{% load i18n %} {% load i18n %}<li id="primary-extensible-header" class="dropdown extensible-header">
<li id="primary-extensible-header" class="dropdown extensible-header">
{% for header in header_sections%} {% for header in header_sections%}
{% if forloop.first %} {% if forloop.first %}
<a id="{{ header.0 }}" class="extensible-header-section"> {% autoescape off %}{{ header.1 }}{% endautoescape %} </a> <a id="{{ header.0 }}" class="extensible-header-section"> {% autoescape off %}{{ header.1 }}{% endautoescape %} </a>