Commit 7ae16429 authored by Fred Drake's avatar Fred Drake

\versionadded: Add support for including an explanatory note along with

    the versioning information, similar to \versionchanged.
parent e77a9d47
...@@ -872,8 +872,13 @@ ...@@ -872,8 +872,13 @@
% \versionadded{1.5.2} % \versionadded{1.5.2}
% \versionchanged[short explanation]{2.0} % \versionchanged[short explanation]{2.0}
% %
\newcommand{\versionadded}[1]{% \newcommand{\versionadded}[2][\py@badkey]{%
{ New in version #1. }} \ifx#1\@undefined%
{ New in version #2. }%
\else%
{ New in version #2:\ #1. }%
\fi%
}
\newcommand{\versionchanged}[2][\py@badkey]{% \newcommand{\versionchanged}[2][\py@badkey]{%
\ifx#1\@undefined% \ifx#1\@undefined%
{ Changed in version #2. }% { Changed in version #2. }%
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment