summaryrefslogtreecommitdiff
path: root/sphinx/builders/devhelp.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/builders/devhelp.py')
-rw-r--r--sphinx/builders/devhelp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/devhelp.py b/sphinx/builders/devhelp.py
index a1b419453..62bd22377 100644
--- a/sphinx/builders/devhelp.py
+++ b/sphinx/builders/devhelp.py
@@ -107,12 +107,12 @@ class DevhelpBuilder(StandaloneHTMLBuilder):
pass
elif len(refs) == 1:
etree.SubElement(functions, 'function',
- name=title, link=refs[0])
+ name=title, link=refs[0][1])
else:
for i, ref in enumerate(refs):
etree.SubElement(functions, 'function',
name="[%d] %s" % (i, title),
- link=ref)
+ link=ref[1])
if subitems:
parent_title = re.sub(r'\s*\(.*\)\s*$', '', title)