Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2018-12-23 13:23:04 +0300
committerjfbu <jfbu@free.fr>2018-12-23 13:23:04 +0300
commit701b39328fd4519f329961ad8d3d9eedfdc8f00c (patch)
treed9863aeed29d3bda70439d6a3bd1c0c98f86b638 /sphinx/ext/todo.py
parentddb684bbc016e98a3daf662b20f69c733c55ba19 (diff)
parenta77f344035b3cb18b9fe9a06e41059c654c7dafe (diff)
Merge branch '1.8'
(Resolved) Conflicts: sphinx/texinputs/sphinxmanual.cls
Diffstat (limited to 'sphinx/ext/todo.py')
-rw-r--r--sphinx/ext/todo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/ext/todo.py b/sphinx/ext/todo.py
index 62fea7df8..1d8f9cb60 100644
--- a/sphinx/ext/todo.py
+++ b/sphinx/ext/todo.py
@@ -173,7 +173,10 @@ def process_todo_nodes(app, doctree, fromdocname):
try:
newnode['refuri'] = app.builder.get_relative_uri(
fromdocname, todo_info['docname'])
- newnode['refuri'] += '#' + todo_info['target']['refid']
+ if 'refid' in todo_info['target']:
+ newnode['refuri'] += '#' + todo_info['target']['refid']
+ else:
+ newnode['refuri'] += '#' + todo_info['target']['ids'][0]
except NoUri:
# ignore if no URI can be determined, e.g. for LaTeX output
pass