mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3055 from jfbu/allowreferencesinlatextopics
Fix #2461: re-allow footnotes in topics for latex PDF
This commit is contained in:
commit
358f5e08ef
@ -212,10 +212,6 @@ class ShowUrlsTransform(object):
|
|||||||
if node.astext() != uri:
|
if node.astext() != uri:
|
||||||
index = node.parent.index(node)
|
index = node.parent.index(node)
|
||||||
if show_urls == 'footnote':
|
if show_urls == 'footnote':
|
||||||
if list(traverse_parent(node, nodes.topic)):
|
|
||||||
# should not expand references in topics
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
footnote_nodes = self.create_footnote(uri)
|
footnote_nodes = self.create_footnote(uri)
|
||||||
for i, fn in enumerate(footnote_nodes):
|
for i, fn in enumerate(footnote_nodes):
|
||||||
node.parent.insert(index + i + 1, fn)
|
node.parent.insert(index + i + 1, fn)
|
||||||
|
Loading…
Reference in New Issue
Block a user