diff options
author | Fred Drake <fdrake@acm.org> | 2000-09-12 17:52:33 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-09-12 17:52:33 (GMT) |
commit | 48449985f45745b06078c82bf01152daff13498d (patch) | |
tree | b0f47adeae43350c5498fec57db1c6d24b840038 /Doc/perl | |
parent | 1349437e4c2bfc6e7f601f5a7c284a00fdbdcd6b (diff) | |
download | cpython-48449985f45745b06078c82bf01152daff13498d.zip cpython-48449985f45745b06078c82bf01152daff13498d.tar.gz cpython-48449985f45745b06078c82bf01152daff13498d.tar.bz2 |
\seetitle: New macro for building reference list content.
Diffstat (limited to 'Doc/perl')
-rw-r--r-- | Doc/perl/python.perl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index f457715..58a4a88 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -1444,6 +1444,25 @@ sub do_cmd_seerfc{ return handle_rfclike_reference(@_[0], "RFC"); } +sub do_cmd_seetitle{ + local($_) = @_; + my $url = next_optional_argument(); + my $title = next_argument(); + my $text = next_argument(); + if ($url) { + return '<dl compact class="seetitle">' + . "\n <dt><em class=\"citetitle\"><a href=\"$url\"" + . "\n class=\"url\">$title</a></em>" + . "\n <dd>$text\n </dl>" + . $_; + } + return '<dl compact class="seetitle">' + . "\n <dt><em class=\"citetitle\"" + . "\n >$title</em>" + . "\n <dd>$text\n </dl>" + . $_; +} + sub do_cmd_seeurl{ local($_) = @_; my $url = next_argument(); |