Commit 28e7b4cc authored by Fred Drake's avatar Fred Drake

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").
parent 8fd0f147
...@@ -13,6 +13,8 @@ use Cwd qw(getcwd); ...@@ -13,6 +13,8 @@ use Cwd qw(getcwd);
package main; package main;
$HTML_VERSION = 4.0;
$MAX_LINK_DEPTH = 2; $MAX_LINK_DEPTH = 2;
$ADDRESS = ''; $ADDRESS = '';
...@@ -135,7 +137,7 @@ sub add_link { ...@@ -135,7 +137,7 @@ sub add_link {
# Returns a pair (iconic link, textual link) # Returns a pair (iconic link, textual link)
my($icon, $current_file, @link) = @_; my($icon, $current_file, @link) = @_;
my($dummy, $file, $title) = split($delim, my($dummy, $file, $title) = split($delim,
$toc_section_info{join(' ',@link)}); $section_info{join(' ',@link)});
if ($title && ($file ne $current_file)) { if ($title && ($file ne $current_file)) {
$title = purify($title); $title = purify($title);
$title = get_first_words($title, $WORDS_IN_NAVIGATION_PANEL_TITLES); $title = get_first_words($title, $WORDS_IN_NAVIGATION_PANEL_TITLES);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment