Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 6161:64c9bbeb9b36 | 6162:9cfdbfc6d8ed |
|---|---|
| 85 <html xmlns="http://www.w3.org/1999/xhtml"> | 85 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 86 <head> | 86 <head> |
| 87 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 87 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 88 {{ metatags }} | 88 {{ metatags }} |
| 89 {%- if builder != 'htmlhelp' %} | 89 {%- if builder != 'htmlhelp' %} |
| 90 {%- set titlesuffix = " — " + docstitle %} | 90 {%- set titlesuffix = " — "|safe + docstitle|e %} |
| 91 {%- endif %} | 91 {%- endif %} |
| 92 <title>{{ title|striptags }}{{ titlesuffix }}</title> | 92 <title>{{ title|striptags }}{{ titlesuffix }}</title> |
| 93 {%- if builder == 'web' %} | 93 {%- if builder == 'web' %} |
| 94 <link rel="stylesheet" href="{{ pathto('index') }}?do=stylesheet{% | 94 <link rel="stylesheet" href="{{ pathto('index') }}?do=stylesheet{% |
| 95 if in_admin_panel %}&admin=yes{% endif %}" type="text/css" /> | 95 if in_admin_panel %}&admin=yes{% endif %}" type="text/css" /> |
