Commit 4dc8a3da authored by Fred Drake's avatar Fred Drake

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

parent 6ea172a9
......@@ -99,6 +99,9 @@ div.note { background-color: #fffaf0;
div.note .label { margin-right: 0.5em;
font-family: sans-serif; }
.versionnote1 { display: none; }
.versionnote2 { display: none; }
address { font-size: 80%; }
.release-info { font-style: italic;
font-size: 80%; }
......
......@@ -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{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment