Skip to content

Commit 77d2c5b

Browse files
committed
Mark entity safe and reinstall escape -- make title display right
Change to explicitly mark the string entity — as safe and reinstate escaping of doctitle. If this worked in the past maybe auto-escaping wasn't turned on. If it is in the newer versions of sphinx's jinja |safe is needed now (and |e isn't, but it doesn't seem to cause double escaping so....).
1 parent 53dc5e1 commit 77d2c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h3>{{ _('Quick search') }}</h3>
8787
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8888
{{ metatags }}
8989
{%- if builder != 'htmlhelp' %}
90-
{%- set titlesuffix = " &mdash; " + docstitle %}
90+
{%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
9191
{%- endif %}
9292
<title>{{ title|striptags }}{{ titlesuffix }}</title>
9393
{%- if builder == 'web' %}

0 commit comments

Comments
 (0)