mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Remove some <SPAN> elements that were used only to carry a CLASS
attribute; stick the CLASS on an existing element. Use a variable for the name of the file to get "About this document..." text from.
This commit is contained in:
parent
f62b352a5e
commit
b35f2b7ef8
1 changed files with 14 additions and 6 deletions
|
@ -77,6 +77,12 @@ else {
|
||||||
$mytexinputs .= "$myrootdir${dd}texinputs";
|
$mytexinputs .= "$myrootdir${dd}texinputs";
|
||||||
|
|
||||||
|
|
||||||
|
# Change this variable to change the text added in "About this document...";
|
||||||
|
# this should be an absolute pathname to get it right.
|
||||||
|
#
|
||||||
|
$ABOUT_FILE = "$myrootdir${dd}html${dd}stdabout.dat";
|
||||||
|
|
||||||
|
|
||||||
sub custom_driver_hook{
|
sub custom_driver_hook{
|
||||||
#
|
#
|
||||||
# This adds the directory of the main input file to $TEXINPUTS; it
|
# This adds the directory of the main input file to $TEXINPUTS; it
|
||||||
|
@ -143,8 +149,9 @@ adjust_icon_information();
|
||||||
sub make_nav_sectref{
|
sub make_nav_sectref{
|
||||||
my($label,$title) = @_;
|
my($label,$title) = @_;
|
||||||
if ($title) {
|
if ($title) {
|
||||||
|
$title =~ s/<A/<A class=sectref/;
|
||||||
return ("<b class=navlabel>$label:</b> "
|
return ("<b class=navlabel>$label:</b> "
|
||||||
. "<span class=sectref>$title</span>\n");
|
. "$title\n");
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
@ -408,11 +415,12 @@ sub do_cmd_textohtmlinfopage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_ = (($INFO == 1)
|
$_ = (($INFO == 1)
|
||||||
? join('', $close_all
|
? join('',
|
||||||
, "<strong>$t_title</strong>$the_version\n"
|
$close_all,
|
||||||
, `cat $myrootdir${dd}html${dd}about.dat`
|
"<strong>$t_title</strong>$the_version\n",
|
||||||
, $open_all, $_)
|
`cat $ABOUT_FILE`,
|
||||||
: join('', $close_all, $INFO,"\n", $open_all, $_));
|
$open_all, $_)
|
||||||
|
: join('', $close_all, $INFO,"\n", $open_all, $_));
|
||||||
$_;
|
$_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue