From 52e7684af1fb70a806c813372884f4183ce38bb5 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 2 May 2000 17:37:42 +0000 Subject: do_cmd_versionchanged(): Added support for optional parameter explaining the change that was made in the specified version. --- Doc/perl/python.perl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 2866a36..4033c62 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -281,8 +281,13 @@ sub do_cmd_versionadded{ sub do_cmd_versionchanged{ # one parameter: \versionchanged{version} local($_) = @_; + my $explanation = next_optional_argument(); my $release = next_argument(); - return "\nChanged in version $release.\n" . $_; + my $text = "\nChanged in version $release.\n"; + if ($release) { + $text = "\nChanged in version $release:\n$explanation.\n"; + } + return $text . $_; } # -- cgit v0.12