mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#134: fix pending_xref leftovers when using the todolist directive.
This commit is contained in:
parent
bde588867c
commit
f85f6cd572
@ -111,8 +111,13 @@ def process_todo_nodes(app, doctree, fromdocname):
|
|||||||
para += newnode
|
para += newnode
|
||||||
para += nodes.Text('.)', '.)')
|
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
|
# Insert into the todolist
|
||||||
content.append(todo_info['todo'])
|
content.append(todo_entry)
|
||||||
content.append(para)
|
content.append(para)
|
||||||
|
|
||||||
node.replace_self(content)
|
node.replace_self(content)
|
||||||
|
Loading…
Reference in New Issue
Block a user