diff options
-rw-r--r-- | Doc/perl/python.perl | 7 |
1 files changed, 6 insertions, 1 deletions
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 . $_; } # |