Skip to content

Commit 122103f

Browse files
methaneAA-Turner
andauthored
Maintain XHTML compatibility in split genindex (#12386)
Co-authored-by: Adam Turner <[email protected]>
1 parent 9fdc241 commit 122103f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx/themes/basic/genindex-single.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
{% set title = _('Index') %}
3131
{% block body %}
3232

33-
<h1 id="index">{% trans key=key %}Index &ndash; {{ key }}{% endtrans %}</h1>
33+
{# We use ``&#x2013;`` instead of ``&ndash;`` for XHTML compatibility #}
34+
<h1 id="index">{% trans key=key %}Index &#x2013; {{ key }}{% endtrans %}</h1>
3435

3536
<table style="width: 100%" class="indextable"><tr>
3637
{%- for column in entries|slice(2) if column %}

0 commit comments

Comments
 (0)