Skip to content

Commit

Permalink
Fix sphinx-doc#6243: LaTeX: releasename setting for latex_elements is…
Browse files Browse the repository at this point in the history
… ignored
  • Loading branch information
tk0miya committed Apr 4, 2019
1 parent 8925358 commit e681c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -25,6 +25,7 @@ Bugs fixed
* #6220, #6225: napoleon: AttributeError is raised for raised section having
references
* #6245: circular import error on importing SerializingHTMLBuilder
* #6243: LaTeX: 'releasename' setting for latex_elements is ignored

Testing
--------
Expand Down
2 changes: 1 addition & 1 deletion sphinx/builders/latex/__init__.py
Expand Up @@ -213,7 +213,7 @@ def init_context(self):
self.context['indexname'] = _('Index')
if self.config.release:
# Show the release label only if release value exists
self.context['releasename'] = _('Release')
self.context.setdefault('releasename', _('Release'))

def init_babel(self):
# type: () -> None
Expand Down

0 comments on commit e681c43

Please sign in to comment.