summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-09 18:01:23 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-09 18:01:23 (GMT)
commit92350b3a1f7446e561305bfaa101efeb08286bcc (patch)
tree604cda32c685f1febd4404739ed8fc85dcae54ab /Doc/perl
parent8b78b99647f2bfa7b757f060bdcb2a4e0c6f7105 (diff)
downloadcpython-92350b3a1f7446e561305bfaa101efeb08286bcc.zip
cpython-92350b3a1f7446e561305bfaa101efeb08286bcc.tar.gz
cpython-92350b3a1f7446e561305bfaa101efeb08286bcc.tar.bz2
New markup: \note{...} and \warning{...}
Diffstat (limited to 'Doc/perl')
-rw-r--r--Doc/perl/python.perl10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 13e7aac..10dcdd0 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -236,6 +236,16 @@ sub do_cmd_textbf{
return use_wrappers(@_[0], '<b>', '</b>'); }
sub do_cmd_textit{
return use_wrappers(@_[0], '<i>', '</i>'); }
+sub do_cmd_note{
+ return use_wrappers(
+ @_[0],
+ "<span class=\"note\"><b class=\"label\">Note:</b>\n",
+ '</span>'); }
+sub do_cmd_warning{
+ return use_wrappers(
+ @_[0],
+ "<span class=\"warning\"><b class=\"label\">Warning:</b>\n",
+ '</span>'); }
sub do_cmd_moreargs{
return '...' . @_[0]; }