Merge pull request #3055 from jfbu/allowreferencesinlatextopics

Fix #2461: re-allow footnotes in topics for latex PDF
This commit is contained in:
Jean-François B 2016-11-02 14:45:27 +01:00 committed by GitHub
commit 358f5e08ef

View File

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