mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add testing cases for the "latex_show_urls" option
This commit is contained in:
@@ -51,6 +51,7 @@ latex_documents = [
|
||||
'Georg Brandl \\and someone else', 'manual'),
|
||||
]
|
||||
|
||||
latex_show_urls = 'footnote'
|
||||
latex_additional_files = ['svgimg.svg']
|
||||
|
||||
texinfo_documents = [
|
||||
|
||||
@@ -35,6 +35,18 @@ footnotes in table
|
||||
* - VIDIOC_CROPCAP
|
||||
- Information about VIDIOC_CROPCAP
|
||||
|
||||
URLs as footnotes
|
||||
-----------------
|
||||
|
||||
`homepage <http://sphinx.org>`_
|
||||
|
||||
URLs should not be footnotes
|
||||
----------------------------
|
||||
|
||||
GitHub Page: `https://github.com/sphinx-doc/sphinx <https://github.com/sphinx-doc/sphinx>`_
|
||||
|
||||
Mailing list: `sphinx-dev@googlegroups.com <mailto:sphinx-dev@googlegroups.com>`_
|
||||
|
||||
footenotes
|
||||
--------------------
|
||||
|
||||
|
||||
@@ -318,6 +318,9 @@ def test_footnote(app, status, warning):
|
||||
assert ('\\end{threeparttable}\n\n'
|
||||
'\\footnotetext[4]{\nfootnotes in table caption\n}'
|
||||
'\\footnotetext[5]{\nfootnotes in table\n}' in result)
|
||||
assert r'\href{http://sphinx.org}{homepage}\footnote{http://sphinx.org}' in result
|
||||
assert r'\footnote{https://github.com/sphinx-doc/sphinx}' not in result
|
||||
assert r'\footnote{sphinx-dev@googlegroups.com}' not in result
|
||||
|
||||
|
||||
@with_app(buildername='latex', testroot='references-in-caption')
|
||||
|
||||
Reference in New Issue
Block a user