hide version notes for 1.x and 2.x from the HTML version

This commit is contained in:
Fred Drake 2006-12-19 22:06:09 +00:00
parent 9a4e95ccc8
commit 51d00223c3
2 changed files with 8 additions and 1 deletions

View file

@ -422,11 +422,15 @@ sub versionnote($$){
local $_ = $_[1];
my $explanation = next_optional_argument();
my $release = next_argument();
my $classes = "versionnote";
if ($release =~ /^(\d+)\./) {
$classes .= " versionnote$1";
}
my $text = "$type in version $release.";
if ($explanation) {
$text = "$type in version $release:\n$explanation.";
}
return "\n<span class=\"versionnote\">$text</span>\n" . $_;
return "\n<span class=\"$classes\" \n>$text</span>\n" . $_;
}
sub do_cmd_versionadded{