Kaydet (Commit) 51d00223 authored tarafından Fred Drake's avatar Fred Drake

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

üst 9a4e95cc
...@@ -99,6 +99,9 @@ div.note { background-color: #fffaf0; ...@@ -99,6 +99,9 @@ div.note { background-color: #fffaf0;
div.note .label { margin-right: 0.5em; div.note .label { margin-right: 0.5em;
font-family: sans-serif; } font-family: sans-serif; }
.versionnote1 { display: none; }
.versionnote2 { display: none; }
address { font-size: 80%; } address { font-size: 80%; }
.release-info { font-style: italic; .release-info { font-style: italic;
font-size: 80%; } font-size: 80%; }
......
...@@ -422,11 +422,15 @@ sub versionnote($$){ ...@@ -422,11 +422,15 @@ sub versionnote($$){
local $_ = $_[1]; local $_ = $_[1];
my $explanation = next_optional_argument(); my $explanation = next_optional_argument();
my $release = next_argument(); my $release = next_argument();
my $classes = "versionnote";
if ($release =~ /^(\d+)\./) {
$classes .= " versionnote$1";
}
my $text = "$type in version $release."; my $text = "$type in version $release.";
if ($explanation) { if ($explanation) {
$text = "$type in version $release:\n$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{ 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