do_cmd_textohtmlinfopage(): Rip out most of the boilerplate and move

it to the about.dat file.  Only what really needs to be
	generated is, and the remainder is easier to maintain than
	Perl code.
This commit is contained in:
Fred Drake 1998-11-30 19:25:47 +00:00
parent d83c8bd95f
commit 15796f791a

View file

@ -304,19 +304,20 @@ sub do_cmd_textohtmlinfopage {
if ($INFO) { # if ($INFO) { #
anchor_label("about",$CURRENT_FILE,$_); # this is added anchor_label("about",$CURRENT_FILE,$_); # this is added
} # } #
( ($INFO == 1) my $the_version = ''; # and the rest is
? join('', $close_all if ($t_date) { # mostly ours
, "<STRONG>$t_title</STRONG><P>\nThis document was generated using the\n" $the_version = ",\n$t_date";
, "<A HREF=\"$TEX2HTMLADDRESS\"><STRONG>LaTeX</STRONG>2<tt>HTML</tt></A>" if ($PYTHON_VERSION) {
, " translator Version $TEX2HTMLVERSION\n" $the_version .= ", Release $PYTHON_VERSION";
, "<P>Copyright &#169; 1993, 1994, 1995, 1996, 1997,\n" }
, "<A HREF=\"$AUTHORADDRESS\">Nikos Drakos</A>, \n" }
, "Computer Based Learning Unit, University of Leeds.\n" $_ = (($INFO == 1)
, "<P>The command line arguments were: <BR>\n " ? join('', $close_all
, "<STRONG>latex2html</STRONG> <tt>$argv</tt>.\n" , "<strong>$t_title</strong>$the_version\n"
, "<P>The translation was initiated by $address_data[0] on $address_data[1]" , `cat $myrootdir${dd}html${dd}about.dat`
, $open_all, $_) , $open_all, $_)
: join('', $close_all, $INFO,"\n", $open_all, $_)) : join('', $close_all, $INFO,"\n", $open_all, $_));
$_;
} }
# $idx_mark will be replaced with the real index at the end # $idx_mark will be replaced with the real index at the end