From: Fred Drake Date: Tue, 19 Sep 2000 15:36:19 +0000 (+0000) Subject: make_nav_sectref(): Create more minimal HTML, hanging the class attribute X-Git-Tag: v2.0b2~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02c7082745f0d99ac9951a9ea0a1f07eaf8271d8;p=python make_nav_sectref(): Create more minimal HTML, hanging the class attribute off an existing anchor tag if available (I think it always is, but am not completely sure). --- diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index b551158287..4274a6ca2e 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -97,8 +97,13 @@ $CUSTOM_BUTTONS = ''; sub make_nav_sectref { my($label,$title) = @_; if ($title) { - return ("$label: " - . "$title\n"); + if ($title =~ /\<[aA] /) { + $title =~ s/\<[aA] /$title"; + } + return "$label: $title\n"; } return ''; }