[Python-3000-checkins] r53089 - in python/branches/p3yk/Doc: html/style.css perl/python.perl
fred.drake
python-3000-checkins at python.org
Tue Dec 19 23:06:10 CET 2006
Author: fred.drake
Date: Tue Dec 19 23:06:09 2006
New Revision: 53089
Modified:
python/branches/p3yk/Doc/html/style.css
python/branches/p3yk/Doc/perl/python.perl
Log:
hide version notes for 1.x and 2.x from the HTML version
Modified: python/branches/p3yk/Doc/html/style.css
==============================================================================
--- python/branches/p3yk/Doc/html/style.css (original)
+++ python/branches/p3yk/Doc/html/style.css Tue Dec 19 23:06:09 2006
@@ -99,6 +99,9 @@
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%; }
Modified: python/branches/p3yk/Doc/perl/python.perl
==============================================================================
--- python/branches/p3yk/Doc/perl/python.perl (original)
+++ python/branches/p3yk/Doc/perl/python.perl Tue Dec 19 23:06:09 2006
@@ -422,11 +422,15 @@
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{
More information about the Python-3000-checkins
mailing list