diff options
author | jfbu <jfbu@free.fr> | 2018-12-23 11:23:04 +0100 |
---|---|---|
committer | jfbu <jfbu@free.fr> | 2018-12-23 11:23:04 +0100 |
commit | 701b39328fd4519f329961ad8d3d9eedfdc8f00c (patch) | |
tree | d9863aeed29d3bda70439d6a3bd1c0c98f86b638 /sphinx/ext/todo.py | |
parent | ddb684bbc016e98a3daf662b20f69c733c55ba19 (diff) | |
parent | a77f344035b3cb18b9fe9a06e41059c654c7dafe (diff) | |
download | sphinx-git-701b39328fd4519f329961ad8d3d9eedfdc8f00c.tar.gz |
Merge branch '1.8'
(Resolved) Conflicts:
sphinx/texinputs/sphinxmanual.cls
Diffstat (limited to 'sphinx/ext/todo.py')
-rw-r--r-- | sphinx/ext/todo.py | 5 |
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 |