]> granicus.if.org Git - python/commitdiff
Added support for AMK's {definitions} environment; thanks for the reminder!
authorFred Drake <fdrake@acm.org>
Wed, 20 May 1998 21:32:09 +0000 (21:32 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 20 May 1998 21:32:09 +0000 (21:32 +0000)
Doc/perl/python.perl

index 72674977b04fc3f05806f569b7e44fd11d6ff815..3f345398b04b9fcff4bb41b55e646555afafa8dc 100644 (file)
@@ -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