summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-03-10 17:34:43 +0900
committerGitHub <noreply@github.com>2019-03-10 17:34:43 +0900
commitdb23555f7d707157f15aef4be792f072893a9ea9 (patch)
treebd427aab056e28feb5956e7d5e9bf6df4877450e
parent4bac6b56d035e4ae4d4bae073e85c2d34e4458db (diff)
parentef2d16d68aec4015ccfd8a3b2ded99c1a58d9da2 (diff)
downloadsphinx-git-db23555f7d707157f15aef4be792f072893a9ea9.tar.gz
Merge pull request #6160 from tk0miya/adjust
pretty changes for 2.0
-rw-r--r--sphinx/writers/manpage.py4
-rw-r--r--tests/test_build_latex.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py
index 458464ffd..0856ee5ee 100644
--- a/sphinx/writers/manpage.py
+++ b/sphinx/writers/manpage.py
@@ -473,14 +473,14 @@ class ManualPageTranslator(SphinxTranslator, BaseTranslator):
if isinstance(node.parent, nodes.container) and node.parent.get('literal_block'):
self.body.append('.sp\n')
else:
- BaseTranslator.visit_caption(self, node)
+ super().visit_caption(node)
def depart_caption(self, node):
# type: (nodes.Element) -> None
if isinstance(node.parent, nodes.container) and node.parent.get('literal_block'):
self.body.append('\n')
else:
- BaseTranslator.depart_caption(self, node)
+ super().depart_caption(node)
# overwritten: handle section titles better than in 0.6 release
def visit_title(self, node):
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
index 58eaf90f8..f02394cf1 100644
--- a/tests/test_build_latex.py
+++ b/tests/test_build_latex.py
@@ -1414,7 +1414,7 @@ def test_includegraphics_oversized(app, status, warning):
@pytest.mark.sphinx('latex', testroot='index_on_title')
def test_index_on_title(app, status, warning):
app.builder.build_all()
- result = (app.outdir / 'Python.tex').text(encoding='utf8')
+ result = (app.outdir / 'python.tex').text(encoding='utf8')
assert ('\\chapter{Test for index in top level title}\n'
'\\label{\\detokenize{contents:test-for-index-in-top-level-title}}'
'\\index{index@\\spxentry{index}}\n'