summaryrefslogtreecommitdiff
path: root/sphinx/ext/todo.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-05-24 12:57:07 +0200
committerGeorg Brandl <georg@python.org>2010-05-24 12:57:07 +0200
commit980c0782ae573b97163e06feaf94811d7ad58927 (patch)
treed381671d66895cf8a5dd8a599de9459a3a39763c /sphinx/ext/todo.py
parentd20fca253699e3d85e66e4d203fb5b2a95ee23a4 (diff)
parentbfc13ad26a4eacd0396942cf4b94bda8bffe2549 (diff)
downloadsphinx-980c0782ae573b97163e06feaf94811d7ad58927.tar.gz
Merge with http://bitbucket.org/tpowers/sphinx/ (rewriting the external/internal distinction code)
In HTML output, references now get the class ``internal`` if they are internal to the whole project, as opposed to internal to the current page. The ``menuselection`` and ``guilabel`` roles now support ampersand accelerators.
Diffstat (limited to 'sphinx/ext/todo.py')
-rw-r--r--sphinx/ext/todo.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/ext/todo.py b/sphinx/ext/todo.py
index ac362919..a6c33202 100644
--- a/sphinx/ext/todo.py
+++ b/sphinx/ext/todo.py
@@ -113,9 +113,8 @@ def process_todo_nodes(app, doctree, fromdocname):
para += nodes.Text(desc1, desc1)
# Create a reference
- newnode = nodes.reference('', '')
+ newnode = nodes.reference('', '', internal=True)
innernode = nodes.emphasis(_('original entry'), _('original entry'))
- newnode['refdocname'] = todo_info['docname']
try:
newnode['refuri'] = app.builder.get_relative_uri(
fromdocname, todo_info['docname'])