From 51d00223c35f9e8f983cc7d1cb8ba1c62b86355a Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 19 Dec 2006 22:06:09 +0000 Subject: [PATCH] hide version notes for 1.x and 2.x from the HTML version --- Doc/html/style.css | 3 +++ Doc/perl/python.perl | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Doc/html/style.css b/Doc/html/style.css index 06a613c2ca8..f0a20864614 100644 --- a/Doc/html/style.css +++ b/Doc/html/style.css @@ -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%; } diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index cf0301ebd6d..5e940e63ea2 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -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$text\n" . $_; + return "\n$text\n" . $_; } sub do_cmd_versionadded{