On HTML Help, ignore 'html_output_encoding' and use langage encoding.

This commit is contained in:
amenohi
2010-11-18 17:18:15 +09:00
parent 9be3dc6cda
commit 0c7d972c81

View File

@@ -690,7 +690,10 @@ class StandaloneHTMLBuilder(Builder):
return uri
ctx['pathto'] = pathto
ctx['hasdoc'] = lambda name: name in self.env.all_docs
ctx['encoding'] = encoding = self.config.html_output_encoding
if self.name != 'htmlhelp':
ctx['encoding'] = encoding = self.config.html_output_encoding
else:
ctx['encoding'] = encoding = self.encoding
ctx['toctree'] = lambda **kw: self._get_local_toctree(pagename, **kw)
self.add_sidebars(pagename, ctx)
ctx.update(addctx)