Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b35f2b7

Browse files
committed
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.
1 parent f62b352 commit b35f2b7

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

Doc/perl/l2hinit.perl

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ package main;
7777
$mytexinputs .= "$myrootdir${dd}texinputs";
7878

7979

80+
# Change this variable to change the text added in "About this document...";
81+
# this should be an absolute pathname to get it right.
82+
#
83+
$ABOUT_FILE = "$myrootdir${dd}html${dd}stdabout.dat";
84+
85+
8086
sub custom_driver_hook{
8187
#
8288
# This adds the directory of the main input file to $TEXINPUTS; it
@@ -143,8 +149,9 @@ sub adjust_icon_information{
143149
sub make_nav_sectref{
144150
my($label,$title) = @_;
145151
if ($title) {
152+
$title =~ s/<A/<A class=sectref/;
146153
return ("<b class=navlabel>$label:</b> "
147-
. "<span class=sectref>$title</span>\n");
154+
. "$title\n");
148155
}
149156
return '';
150157
}
@@ -408,11 +415,12 @@ sub do_cmd_textohtmlinfopage {
408415
}
409416
}
410417
$_ = (($INFO == 1)
411-
? join('', $close_all
412-
, "<strong>$t_title</strong>$the_version\n"
413-
, `cat $myrootdir${dd}html${dd}about.dat`
414-
, $open_all, $_)
415-
: join('', $close_all, $INFO,"\n", $open_all, $_));
418+
? join('',
419+
$close_all,
420+
"<strong>$t_title</strong>$the_version\n",
421+
`cat $ABOUT_FILE`,
422+
$open_all, $_)
423+
: join('', $close_all, $INFO,"\n", $open_all, $_));
416424
$_;
417425
}
418426

0 commit comments

Comments
 (0)