From 0739c44bbd0972b65a549b246dc38e41a1e9711b Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 4 Sep 2003 22:16:45 +0000 Subject: Suppress more online-only navigation in the printed HTML. --- Doc/html/style.css | 2 +- Doc/perl/l2hinit.perl | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Doc/html/style.css b/Doc/html/style.css index bd79427..70cc235 100644 --- a/Doc/html/style.css +++ b/Doc/html/style.css @@ -146,5 +146,5 @@ div.note .label { margin-right: 0.5em; * Some specialization for printed output. */ @media print { - #bottom-navigation-panel { display: none; } + .online-navigation { display: none; } } diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index 41b2f94..4748b8c 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -26,7 +26,7 @@ $BOTTOM_NAVIGATION = 1; $AUTO_NAVIGATION = 0; $BODYTEXT = ''; -$CHILDLINE = "\n


\n"; +$CHILDLINE = "\n



\n"; $VERBOSITY = 0; # default # of columns for the indexes @@ -180,20 +180,23 @@ sub make_nav_panel() { $s = ('' . "\n" # left-hand side - . "\n" - . "\n" - . "\n" + . "\n" + . "\n" + . "\n" # title box . "\n" # right-hand side - . "\n" - . "\n" # module index - . "\n" + . "\n" + # module index + . "\n" + . "\n" . "\n
$PREVIOUS$UP$NEXT$PREVIOUS$UP$NEXT$t_title$CONTENTS$CUSTOM_BUTTONS$INDEX$CONTENTS$CUSTOM_BUTTONS$INDEX
\n" # textual navigation + . "
\n" . make_nav_sectref("Previous", "prev", $PREVIOUS_TITLE) . make_nav_sectref("Up", "parent", $UP_TITLE) . make_nav_sectref("Next", "next", $NEXT_TITLE) + . "
\n" ); # remove these; they are unnecessary and cause errors from validation $s =~ s/ NAME="tex2html\d+"\n */ /g; @@ -205,6 +208,9 @@ sub add_child_links { $toc =~ s|\s*||g; $toc =~ s/ NAME=\"tex2html\d+\"\s*href=/ href=/gi; $toc =~ s|(\s*)?||gi; + if ($toc =~ / NAME=["']CHILD_LINKS["']/) { + return "
\n$toc
\n"; + } return $toc; } @@ -233,7 +239,7 @@ sub top_navigation_panel() { } sub bot_navigation_panel() { - return "\n
\n" + return "\n
\n" . "


\n" . make_nav_panel() . "
\n" -- cgit v0.12