Fix #6744: support for seealso directive should be via an environment

This commit is contained in:
Jean-François B
2023-01-03 17:11:58 +01:00
parent 08ca934fff
commit bfd95dadf2
6 changed files with 31 additions and 4 deletions

View File

@@ -135,6 +135,17 @@ def test_writer(app, status, warning):
assert 'Footnotes' not in result
assert ('\\begin{sphinxseealso}{See also}\n\n'
'\\sphinxAtStartPar\n'
'something, something else, something more\n'
'\\begin{description}\n'
'\\sphinxlineitem{\\sphinxhref{http://www.google.com}{Google}}\n'
'\\sphinxAtStartPar\n'
'For everything.\n'
'\n'
'\\end{description}\n'
'\n\n\\end{sphinxseealso}\n\n' in result)
@pytest.mark.sphinx('latex', testroot='warnings', freshenv=True)
def test_latex_warnings(app, status, warning):