summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-14 22:50:06 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-14 22:50:06 (GMT)
commit6ca33771f88e5819a2c8880d6f022d9f8d43faf0 (patch)
treef5aeb060d04c0a972f0bb42f07e856bf891d2d8a /Doc/texinputs
parent615e2505f032df1de66ed97195a99cce8d054cce (diff)
downloadcpython-6ca33771f88e5819a2c8880d6f022d9f8d43faf0.zip
cpython-6ca33771f88e5819a2c8880d6f022d9f8d43faf0.tar.gz
cpython-6ca33771f88e5819a2c8880d6f022d9f8d43faf0.tar.bz2
Add a new environment for whole-paragraph (or longer) notes & warnings.
Diffstat (limited to 'Doc/texinputs')
-rw-r--r--Doc/texinputs/python.sty9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 51ee804..021ba5c 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -919,8 +919,13 @@
\end{tabular}
}
-\newcommand{\note}[1]{\strong{Note:} #1}
-\newcommand{\warning}[1]{\strong{Warning:} #1}
+\newcommand{\py@noticelabel@note}{Note:}
+\newcommand{\py@noticelabel@warning}{Warning:}
+\newenvironment{notice}[1][note]{
+ \par\strong{\csname py@noticelabel@#1\endcsname}
+}{}
+\newcommand{\note}[1]{\strong{\py@noticelabel@note} #1}
+\newcommand{\warning}[1]{\strong{\py@noticelabel@warning} #1}
% Deprecation stuff.
% Should be extended to allow an index / list of deprecated stuff. But