mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #2461: re-allow footnotes in topics for latex PDF
The issue #2291 which was fixed at9b958b6d
(1.3.6) is now alleviated in another way since PR #3022 (b8e0e93
).
This commit is contained in:
parent
40b644b664
commit
aad61e814c
@ -146,15 +146,11 @@ class ShowUrlsTransform(object):
|
||||
if node.astext() != uri:
|
||||
index = node.parent.index(node)
|
||||
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)
|
||||
for i, fn in enumerate(footnote_nodes):
|
||||
node.parent.insert(index + i + 1, fn)
|
||||
footnote_nodes = self.create_footnote(uri)
|
||||
for i, fn in enumerate(footnote_nodes):
|
||||
node.parent.insert(index + i + 1, fn)
|
||||
|
||||
self.expanded = True
|
||||
self.expanded = True
|
||||
else: # all other true values (b/w compat)
|
||||
textnode = nodes.Text(" (%s)" % uri)
|
||||
node.parent.insert(index + 1, textnode)
|
||||
|
Loading…
Reference in New Issue
Block a user