From f85f6cd572c711fd00f2999a7461ad195c524b48 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 27 Mar 2009 12:05:00 -0500 Subject: [PATCH] #134: fix pending_xref leftovers when using the todolist directive. --- sphinx/ext/todo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sphinx/ext/todo.py b/sphinx/ext/todo.py index 61dd4d673..e2a1bb4a6 100644 --- a/sphinx/ext/todo.py +++ b/sphinx/ext/todo.py @@ -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)