Maintain XHTML compatibility in split genindex (#12386)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Inada Naoki 2024-07-03 06:51:55 +09:00 committed by GitHub
parent 9fdc241db5
commit 122103f7be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,8 @@
{% set title = _('Index') %}
{% block body %}
<h1 id="index">{% trans key=key %}Index &ndash; {{ key }}{% endtrans %}</h1>
{# We use ``&#x2013;`` instead of ``&ndash;`` for XHTML compatibility #}
<h1 id="index">{% trans key=key %}Index &#x2013; {{ key }}{% endtrans %}</h1>
<table style="width: 100%" class="indextable"><tr>
{%- for column in entries|slice(2) if column %}