diff options
| author | Georg Brandl <georg@python.org> | 2009-03-27 12:05:00 -0500 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-03-27 12:05:00 -0500 |
| commit | 8ac02bfa30933f97dd944cc0f1e4be2e656d7f86 (patch) | |
| tree | 08c3e2b134f877cd78d71c1df5e33d5cab147bd9 /sphinx/ext/todo.py | |
| parent | dce40faca00578f18fa52b0f7e55d6cca4d24e50 (diff) | |
| download | sphinx-git-8ac02bfa30933f97dd944cc0f1e4be2e656d7f86.tar.gz | |
#134: fix pending_xref leftovers when using the todolist directive.
Diffstat (limited to 'sphinx/ext/todo.py')
| -rw-r--r-- | sphinx/ext/todo.py | 7 |
1 files changed, 6 insertions, 1 deletions
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) |
