mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
do_cmd_versionadded(),
do_cmd_versionchanged(): Support for new macros.
This commit is contained in:
parent
af958c7be2
commit
897d12bb87
1 changed files with 14 additions and 0 deletions
|
@ -225,6 +225,20 @@ sub do_cmd_deprecated{
|
||||||
"<b>Deprecated since release $release.</b>\n$reason<p>" . $_;
|
"<b>Deprecated since release $release.</b>\n$reason<p>" . $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub do_cmd_versionadded{
|
||||||
|
# one parameter: \versionadded{version}
|
||||||
|
local($_) = @_;
|
||||||
|
my $release = next_argument();
|
||||||
|
"<b>New in version $release.</b><p>" . $_;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub do_cmd_versionchanged{
|
||||||
|
# one parameter: \versionchanged{version}
|
||||||
|
local($_) = @_;
|
||||||
|
my $release = next_argument();
|
||||||
|
"<b>Changed in version $release.</b><p>" . $_;
|
||||||
|
}
|
||||||
|
|
||||||
# file and samp are at the end of this file since they screw up fontlock.
|
# file and samp are at the end of this file since they screw up fontlock.
|
||||||
|
|
||||||
# index commands
|
# index commands
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue