#134: fix pending_xref leftovers when using the todolist directive.

This commit is contained in:
Georg Brandl 2009-03-27 12:05:00 -05:00
parent bde588867c
commit f85f6cd572

View File

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