Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9019b549
Commit
9019b549
authored
Sep 04, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress more online-only navigation in the printed HTML.
parent
64389d49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
Doc/html/style.css
Doc/html/style.css
+1
-1
Doc/perl/l2hinit.perl
Doc/perl/l2hinit.perl
+14
-8
No files found.
Doc/html/style.css
View file @
9019b549
...
...
@@ -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
;
}
}
Doc/perl/l2hinit.perl
View file @
9019b549
...
...
@@ -26,7 +26,7 @@ $BOTTOM_NAVIGATION = 1;
$AUTO_NAVIGATION = 0;
$BODYTEXT = '';
$CHILDLINE = "\n
<p><
/p><hr
/>
\n";
$CHILDLINE = "\n
<p><
br
/></p><hr
class=
'online-navigation'
/>
\n";
$VERBOSITY = 0;
# default # of columns for the indexes
...
...
@@ -180,20 +180,23 @@ sub make_nav_panel() {
$
s =
('<table
align=
"center"
width=
"100%"
cellpadding=
"0"
cellspacing=
"2"
>
'
. "\n
<tr>
"
# left-hand side
. "\n
<td>
$PREVIOUS
</td>
"
. "\n
<td>
$UP
</td>
"
. "\n
<td>
$NEXT
</td>
"
. "\n
<td
class=
'online-navigation'
>
$PREVIOUS
</td>
"
. "\n
<td
class=
'online-navigation'
>
$UP
</td>
"
. "\n
<td
class=
'online-navigation'
>
$NEXT
</td>
"
# title box
. "\n
<td
align=
\"center\"
width=
\"100%\"
>
$t_title
</td>
"
# right-hand side
. "\n
<td>
$CONTENTS
</td>
"
. "\n
<td>
$CUSTOM_BUTTONS
</td>
" # module index
. "\n
<td>
$INDEX
</td>
"
. "\n
<td
class=
'online-navigation'
>
$CONTENTS
</td>
"
# module index
. "\n
<td
class=
'online-navigation'
>
$CUSTOM_BUTTONS
</td>
"
. "\n
<td
class=
'online-navigation'
>
$INDEX
</td>
"
. "\n
</tr></table>
\n"
# textual navigation
. "
<div
class=
'online-navigation'
>
\n"
. make_nav_sectref("Previous", "prev", $PREVIOUS_TITLE)
. make_nav_sectref("Up", "parent", $UP_TITLE)
. make_nav_sectref("Next", "next", $NEXT_TITLE)
. "
</div>
\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*
</
[
aA
]
>
|
</a>
|g;
$toc =~ s/ NAME=\"tex2html\d+\"\s*href=/ href=/gi;
$toc =~ s|
</UL>
(\s*
<BR
(
/)?
>
)?|
</ul>
|gi;
if ($toc =~ / NAME=["']CHILD_LINKS["']/) {
return "
<div
class=
'online-navigation'
>
\n$toc
</div>
\n";
}
return $toc;
}
...
...
@@ -233,7 +239,7 @@ sub top_navigation_panel() {
}
sub bot_navigation_panel() {
return "\n
<div
id=
'bottom-navigation-panel
'
>
\n"
return "\n
<div
class=
'online-navigation
'
>
\n"
. "
<p></p><hr
/>
\n"
. make_nav_panel()
. "
</div>
\n"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment