summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-12 17:52:33 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-12 17:52:33 (GMT)
commit48449985f45745b06078c82bf01152daff13498d (patch)
treeb0f47adeae43350c5498fec57db1c6d24b840038 /Doc/perl
parent1349437e4c2bfc6e7f601f5a7c284a00fdbdcd6b (diff)
downloadcpython-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.perl19
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();