mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #852: Fix HtmlHelp index entry links again.
This commit is contained in:
parent
b15eb0c086
commit
af51c6c633
2
CHANGES
2
CHANGES
@ -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!
|
||||
======================================================================
|
||||
|
@ -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> ')
|
||||
|
Loading…
Reference in New Issue
Block a user