summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-26 14:16:23 +0000
committerFred Drake <fdrake@acm.org>2001-10-26 14:16:23 +0000
commitfb6499fd9c655ccbd2721e80014118c8c72ce669 (patch)
treee1a9ba2115400a2908a4e62231dfc0e0014a4250
parentf0a2ac9d5bf4f233824b7fcd6c232a41e5670284 (diff)
downloadcpython-git-fb6499fd9c655ccbd2721e80014118c8c72ce669.tar.gz
Clean up the tables of child links generated by stock LaTeX2HTML so we get
consistent (lack of) vertical space between sections, and remove some of the unnecessary cruft that was added in (finally we get to *remove* something that got generated!).
-rw-r--r--Doc/perl/l2hinit.perl8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl
index 35c1d8bf7f..61c2ff1791 100644
--- a/Doc/perl/l2hinit.perl
+++ b/Doc/perl/l2hinit.perl
@@ -182,6 +182,14 @@ sub make_nav_panel {
return $s;
}
+sub add_child_links {
+ my $toc = add_real_child_links(@_);
+ $toc =~ s|\s*</[aA]>|</a>|g;
+ $toc =~ s/ NAME=\"tex2html\d+\"\s*href=/ href=/gi;
+ $toc =~ s|</UL>(\s*<BR>)?|</ul>|gi;
+ return $toc;
+}
+
sub get_version_text {
if ($PACKAGE_VERSION ne '' && $t_date) {
return ("<span class=\"release-info\">"