diff options
| -rw-r--r-- | sphinx/ext/todo.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/ext/todo.py b/sphinx/ext/todo.py index dac90660..c8c6412c 100644 --- a/sphinx/ext/todo.py +++ b/sphinx/ext/todo.py @@ -61,6 +61,9 @@ def process_todo_nodes(app, doctree, fromdocname): # Augment each todo with a backlink to the original location. env = app.builder.env + if not hasattr(env, 'todo_all_todos'): + env.todo_all_todos = [] + for node in doctree.traverse(todolist): if not app.config['todo_include_todos']: node.replace_self([]) |
