summaryrefslogtreecommitdiff
path: root/Doc/perl/python.perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-05-20 21:32:09 +0000
committerFred Drake <fdrake@acm.org>1998-05-20 21:32:09 +0000
commit800e3ff6bbf6911b76efa2ab0c774bd708a55e00 (patch)
tree921117f70af8cbe2eae2fc7e603d2b3f95bcf143 /Doc/perl/python.perl
parent7c226c3849ec39fd86bc35d92259dd9c6f620837 (diff)
downloadcpython-800e3ff6bbf6911b76efa2ab0c774bd708a55e00.tar.gz
Added support for AMK's {definitions} environment; thanks for the reminder!
Diffstat (limited to 'Doc/perl/python.perl')
-rw-r--r--Doc/perl/python.perl20
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 72674977b0..3f345398b0 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -837,4 +837,24 @@ sub do_cmd_maketitle {
}
+#
+# Definition list support.
+#
+
+sub do_env_definitions{
+ local($_) = @_;
+ swallow_newline();
+ "<dl>$_</dl>\n";
+}
+
+sub do_cmd_term{
+ local($_) = @_;
+ my($term, $id) = next_argument_id();
+ my($name,$aname,$ahref) = link_info($id);
+ swallow_newline();
+ # could easily add an index entry here...
+ "<dt><b>$aname" . $term . "</a></b>\n<dd>" . $_;
+}
+
+
1; # This must be the last line