mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4610 from tk0miya/4608_invalid_metatag_for_epub
Fix #4608: epub: Invalid meta tag is generated
This commit is contained in:
commit
82d09f2256
2
CHANGES
2
CHANGES
@ -16,6 +16,8 @@ Features added
|
|||||||
Bugs fixed
|
Bugs fixed
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
* #4608: epub: Invalid meta tag is generated
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@ -143,6 +143,7 @@ class Epub3Builder(_epub_base.EpubBuilder):
|
|||||||
self.globalcontext['theme_writing_mode'] = THEME_WRITING_MODES.get(writing_mode)
|
self.globalcontext['theme_writing_mode'] = THEME_WRITING_MODES.get(writing_mode)
|
||||||
self.globalcontext['html_tag'] = self.html_tag
|
self.globalcontext['html_tag'] = self.html_tag
|
||||||
self.globalcontext['use_meta_charset'] = self.use_meta_charset
|
self.globalcontext['use_meta_charset'] = self.use_meta_charset
|
||||||
|
self.globalcontext['skip_ua_compatible'] = True
|
||||||
|
|
||||||
def build_navlist(self, navnodes):
|
def build_navlist(self, navnodes):
|
||||||
# type: (List[nodes.Node]) -> List[NavPoint]
|
# type: (List[nodes.Node]) -> List[NavPoint]
|
||||||
|
@ -111,8 +111,8 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml"{% if language is not none %} lang="{{ language }}"{% endif %}>
|
<html xmlns="http://www.w3.org/1999/xhtml"{% if language is not none %} lang="{{ language }}"{% endif %}>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<head>
|
<head>
|
||||||
{%- if not html5_doctype %}
|
{%- if not html5_doctype and not skip_ua_compatible %}
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if use_meta_charset or html5_doctype %}
|
{%- if use_meta_charset or html5_doctype %}
|
||||||
<meta charset="{{ encoding }}" />
|
<meta charset="{{ encoding }}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user