Commits

Anonymous committed 54bbe50

Remove ids from copied todo directives; they are no longer unique in the todolist

Comments (0)

Files changed (1)

sphinx/ext/todo.py

                 raise IndexError
         except IndexError:
             targetnode = None
+        newnode = node.deepcopy()
+        del newnode['ids']
         env.todo_all_todos.append({
             'docname': env.docname,
             'source': node.source or env.doc2path(env.docname),
             'lineno': node.line,
-            'todo': node.deepcopy(),
+            'todo': newnode,
             'target': targetnode,
         })