Merge branch '3.x' into fix_bool_issue

This commit is contained in:
ArtyomKaltovich
2020-12-08 13:07:34 -05:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -77,6 +77,7 @@ Bugs fixed
accommodate infinite redirect loops on HEAD
* #8437: Makefile: ``make clean`` with empty BUILDDIR is dangerous
* #8352: std domain: Failed to parse an option that starts with bracket
* #8519: LaTeX: Prevent page brake in the middle of a seealso
* #8522: fix ``__bool__`` method could be called by autodoc module.
Testing
+2 -1
View File
@@ -815,7 +815,8 @@ class LaTeXTranslator(SphinxTranslator):
pass
def visit_seealso(self, node: Element) -> None:
self.body.append('\n\n\\sphinxstrong{%s:}\n\n' % admonitionlabels['seealso'])
self.body.append('\n\n\\sphinxstrong{%s:}\n\\nopagebreak\n\n'
% admonitionlabels['seealso'])
def depart_seealso(self, node: Element) -> None:
self.body.append("\n\n")