mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
add_link(): Fix to use $section_info instead of $toc_section_info,
based on email from Ross Moore <ross@mpce.mq.edu.au>. Set $HTML_VERSION to 4.0, since that's what we really generate (well, 4.0 "transitional").
This commit is contained in:
parent
8fd0f147e7
commit
28e7b4cce1
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,8 @@ use Cwd qw(getcwd);
|
|||
|
||||
package main;
|
||||
|
||||
$HTML_VERSION = 4.0;
|
||||
|
||||
$MAX_LINK_DEPTH = 2;
|
||||
$ADDRESS = '';
|
||||
|
||||
|
@ -135,7 +137,7 @@ sub add_link {
|
|||
# Returns a pair (iconic link, textual link)
|
||||
my($icon, $current_file, @link) = @_;
|
||||
my($dummy, $file, $title) = split($delim,
|
||||
$toc_section_info{join(' ',@link)});
|
||||
$section_info{join(' ',@link)});
|
||||
if ($title && ($file ne $current_file)) {
|
||||
$title = purify($title);
|
||||
$title = get_first_words($title, $WORDS_IN_NAVIGATION_PANEL_TITLES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue