Skip to content

Commit

Permalink
Merge pull request #6253 from tk0miya/6243_releasename_is_ignored
Browse files Browse the repository at this point in the history
Fix #6243: LaTeX: releasename setting for latex_elements is ignored
  • Loading branch information
tk0miya committed Apr 4, 2019
2 parents 81d8511 + e681c43 commit e239291
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 @@ -28,6 +28,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 e239291

Please sign in to comment.