Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdfb05b

Browse files
committed
\versionadded: Add support for including an explanatory note along with
the versioning information, similar to \versionchanged.
1 parent 12b6457 commit fdfb05b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Doc/texinputs/python.sty

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,13 @@
872872
% \versionadded{1.5.2}
873873
% \versionchanged[short explanation]{2.0}
874874
%
875-
\newcommand{\versionadded}[1]{%
876-
{ New in version #1. }}
875+
\newcommand{\versionadded}[2][\py@badkey]{%
876+
\ifx#1\@undefined%
877+
{ New in version #2. }%
878+
\else%
879+
{ New in version #2:\ #1. }%
880+
\fi%
881+
}
877882
\newcommand{\versionchanged}[2][\py@badkey]{%
878883
\ifx#1\@undefined%
879884
{ Changed in version #2. }%

0 commit comments

Comments
 (0)