mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #791: Fix QtHelp and HtmlHelp index entry links.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,6 +1,8 @@
|
|||||||
Release 1.1.1 (in development)
|
Release 1.1.1 (in development)
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
* #791: Fix QtHelp and HtmlHelp index entry links.
|
||||||
|
|
||||||
* #792: Include "sphinx-apidoc" in the source distribution.
|
* #792: Include "sphinx-apidoc" in the source distribution.
|
||||||
|
|
||||||
* #797: Don't crash on a misformatted glossary.
|
* #797: Don't crash on a misformatted glossary.
|
||||||
|
|||||||
@@ -258,7 +258,8 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
|
|||||||
f.write('<UL>\n')
|
f.write('<UL>\n')
|
||||||
def write_index(title, refs, subitems):
|
def write_index(title, refs, subitems):
|
||||||
def write_param(name, value):
|
def write_param(name, value):
|
||||||
item = ' <param name="%s" value="%s">\n' % (name, value)
|
item = ' <param name="%s" value="%s">\n' % \
|
||||||
|
(name, value[1])
|
||||||
f.write(item)
|
f.write(item)
|
||||||
title = cgi.escape(title)
|
title = cgi.escape(title)
|
||||||
f.write('<LI> <OBJECT type="text/sitemap">\n')
|
f.write('<LI> <OBJECT type="text/sitemap">\n')
|
||||||
|
|||||||
@@ -265,9 +265,9 @@ class QtHelpBuilder(StandaloneHTMLBuilder):
|
|||||||
|
|
||||||
if id:
|
if id:
|
||||||
item = ' '*12 + '<keyword name="%s" id="%s" ref="%s"/>' % (
|
item = ' '*12 + '<keyword name="%s" id="%s" ref="%s"/>' % (
|
||||||
name, id, ref)
|
name, id, ref[1])
|
||||||
else:
|
else:
|
||||||
item = ' '*12 + '<keyword name="%s" ref="%s"/>' % (name, ref)
|
item = ' '*12 + '<keyword name="%s" ref="%s"/>' % (name, ref[1])
|
||||||
item.encode('ascii', 'xmlcharrefreplace')
|
item.encode('ascii', 'xmlcharrefreplace')
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user