Closes #1942: Fix a KeyError in websupport.

This commit is contained in:
Georg Brandl 2015-07-25 16:54:51 +02:00
parent e4b42fe15f
commit 3e742bb43a
2 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,7 @@ Bugs fixed
* #1915: Do not generate smart quotes in doc field type annotations.
* #1796: On py3, automated .mo building caused UnicodeDecodeError.
* #1923: Use babel features only if the babel latex element is nonempty.
* #1942: Fix a KeyError in websupport.
Release 1.3.1 (released Mar 17, 2015)

View File

@ -114,6 +114,8 @@ class WebSupportBuilder(PickleHTMLBuilder):
doc_ctx = {
'body': ctx.get('body', ''),
'title': ctx.get('title', ''),
'css': ctx.get('css', ''),
'script': ctx.get('script', ''),
}
# partially render the html template to get at interesting macros
template = self.templates.environment.get_template(templatename)