Commits

Georg Brandl committed fd7aad4

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

Comments (0)

Files changed (1)

sphinx/ext/todo.py

             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)