Mercurial > cpython-lru_cache-weakref
diff Doc/perl/python.perl @ 8397:c9b7e926fd86 legacy-trunk
Added support for AMK's {definitions} environment; thanks for the reminder!
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 20 May 1998 21:32:09 +0000 |
| parents | 4172da91441a |
| children | e88d4e6e4622 |
line wrap: on
line diff
--- a/Doc/perl/python.perl Wed May 20 17:42:17 1998 +0000 +++ b/Doc/perl/python.perl Wed May 20 21:32:09 1998 +0000 @@ -837,4 +837,24 @@ } +# +# 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
