Add testing cases for the "latex_show_urls" option

This commit is contained in:
Hong Xu
2015-12-11 15:06:14 -08:00
parent e2f56a64a4
commit 0084004cfd
3 changed files with 16 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ latex_documents = [
'Georg Brandl \\and someone else', 'manual'),
]
latex_show_urls = 'footnote'
latex_additional_files = ['svgimg.svg']
texinfo_documents = [

View File

@@ -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
--------------------

View File

@@ -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')