mirror of
https://github.com/python/cpython.git
synced 2025-09-06 00:41:39 +00:00
hide version notes for 1.x and 2.x from the HTML version
This commit is contained in:
parent
9a4e95ccc8
commit
51d00223c3
2 changed files with 8 additions and 1 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue