diff options
| author | Yoshiki Shibukawa <shibukawa.yoshiki@dena.jp> | 2017-04-21 12:48:25 +0900 |
|---|---|---|
| committer | Yoshiki Shibukawa <shibukawa.yoshiki@dena.jp> | 2017-04-21 13:02:32 +0900 |
| commit | 76ff2c01351a02b49b2941ab7c0984b31d051531 (patch) | |
| tree | 5c7584a92c60c7edec2c225e7bf5a2f0dc02f2a6 /sphinx/themes/basic/layout.html | |
| parent | 868bb4b2a9837a67b8068e26104226e1ec9ab3b5 (diff) | |
| download | sphinx-git-76ff2c01351a02b49b2941ab7c0984b31d051531.tar.gz | |
fix #2762: change html template for xhtml validation error (for epub)
Diffstat (limited to 'sphinx/themes/basic/layout.html')
| -rw-r--r-- | sphinx/themes/basic/layout.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html index 4f1d71202..c7807b1cd 100644 --- a/sphinx/themes/basic/layout.html +++ b/sphinx/themes/basic/layout.html @@ -110,9 +110,17 @@ {%- endfor %} {%- endmacro %} +{%- if html_tag %} +{{ html_tag }} +{%- else %} <html xmlns="http://www.w3.org/1999/xhtml"{% if language is not none %} lang="{{ language }}"{% endif %}> +{%- endif %} <head> + {%- if use_meta_charset %} + <meta charset="{{ encoding }}" /> + {%- else %} <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" /> + {%- endif %} {{ metatags }} {%- block htmltitle %} <title>{{ title|striptags|e }}{{ titlesuffix }}</title> |
