mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-27 05:37:16 -05:00
#134: fix pending_xref leftovers when using the todolist directive.
This commit is contained in:
+6
-1
@@ -111,8 +111,13 @@ def process_todo_nodes(app, doctree, fromdocname):
|
||||
para += newnode
|
||||
para += nodes.Text('.)', '.)')
|
||||
|
||||
# (Recursively) resolve references in the todo content
|
||||
todo_entry = todo_info['todo']
|
||||
env.resolve_references(todo_entry, todo_info['docname'],
|
||||
app.builder)
|
||||
|
||||
# Insert into the todolist
|
||||
content.append(todo_info['todo'])
|
||||
content.append(todo_entry)
|
||||
content.append(para)
|
||||
|
||||
node.replace_self(content)
|
||||
|
||||
Reference in New Issue
Block a user