Closes #852: Fix HtmlHelp index entry links again.

This commit is contained in:
Georg Brandl 2012-01-29 11:24:25 +01:00
parent b15eb0c086
commit af51c6c633
2 changed files with 6 additions and 4 deletions

View File

@ -29,6 +29,8 @@ Release 1.1.3 (in development)
* #853: Restore compatibility with docutils trunk.
* #852: Fix HtmlHelp index entry links again.
Release 1.1.2 (Nov 1, 2011) -- 1.1.1 is a silly version number anyway!
======================================================================

View File

@ -259,7 +259,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
def write_index(title, refs, subitems):
def write_param(name, value):
item = ' <param name="%s" value="%s">\n' % \
(name, value[1])
(name, value)
f.write(item)
title = cgi.escape(title)
f.write('<LI> <OBJECT type="text/sitemap">\n')
@ -267,12 +267,12 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
if len(refs) == 0:
write_param('See Also', title)
elif len(refs) == 1:
write_param('Local', refs[0])
write_param('Local', refs[0][1])
else:
for i, ref in enumerate(refs):
# XXX: better title?
write_param('Name', '[%d] %s' % (i, ref))
write_param('Local', ref)
write_param('Name', '[%d] %s' % (i, ref[1]))
write_param('Local', ref[1])
f.write('</OBJECT>\n')
if subitems:
f.write('<UL> ')