Commits

Georg Brandl committed 715ee0d

"todolist" has no content or arguments.

Comments (0)

Files changed (1)

sphinx/ext/todo.py

 def todolist_directive(name, arguments, options, content, lineno,
                        content_offset, block_text, state, state_machine):
     # Simply insert an empty todolist node which will be replaced later
-    # when process_todolist is called
+    # when process_todo_nodes is called
     return [todolist('')]
 
 
                  text=(visit_todo_node, depart_todo_node))
 
     app.add_directive('todo', todo_directive, 1, (0, 0, 1))
-    app.add_directive('todolist', todolist_directive, 1, (0, 0, 1))
+    app.add_directive('todolist', todolist_directive, 0, (0, 0, 0))
     app.connect('doctree-resolved', process_todo_nodes)
     app.connect('env-purge-doc', purge_todos)