]> granicus.if.org Git - python/commitdiff
Clean up the tables of child links generated by stock LaTeX2HTML so we get
authorFred Drake <fdrake@acm.org>
Fri, 26 Oct 2001 14:16:23 +0000 (14:16 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 26 Oct 2001 14:16:23 +0000 (14:16 +0000)
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!).

Doc/perl/l2hinit.perl

index 35c1d8bf7f8af4e0a008811779dd4001a6b4846a..61c2ff17912c926d8ca9d8ab5ec8189a955347b6 100644 (file)
@@ -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\">"