mirror of
https://github.com/python/cpython.git
synced 2025-07-26 12:44:33 +00:00
\seetitle: New macro for building reference list content.
This commit is contained in:
parent
1349437e4c
commit
48449985f4
3 changed files with 43 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue