Georg Brandl avatar 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)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.