diff doc/_templates/layout.html @ 6162:9cfdbfc6d8ed

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....).
author John Rouillard <rouilj@ieee.org>
date Mon, 11 May 2020 11:12:25 -0400
parents 64c9bbeb9b36
children b5b1f2830e23
line wrap: on
line diff
--- a/doc/_templates/layout.html	Mon May 11 11:00:15 2020 -0400
+++ b/doc/_templates/layout.html	Mon May 11 11:12:25 2020 -0400
@@ -87,7 +87,7 @@
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     {{ metatags }}
     {%- if builder != 'htmlhelp' %}
-      {%- set titlesuffix = " &mdash; " + docstitle %}
+      {%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
     {%- endif %}
     <title>{{ title|striptags }}{{ titlesuffix }}</title>
     {%- if builder == 'web' %}

Roundup Issue Tracker: http://roundup-tracker.org/