mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Change the look of \seemodule output to fit in better.
This commit is contained in:
parent
03c05a5192
commit
84bd6f3b18
2 changed files with 24 additions and 14 deletions
|
@ -1081,12 +1081,16 @@ sub do_cmd_seemodule{
|
|||
my $key = next_optional_argument();
|
||||
my $module = next_argument();
|
||||
my $text = next_argument();
|
||||
my $period = '.';
|
||||
$key = $module
|
||||
unless $key;
|
||||
return '<div class=seemodule>'
|
||||
. "\n<p>Module <b><tt class=module><a href=\"module-$key.html\">"
|
||||
. "$module</a></tt></b>"
|
||||
. " ($text)</p>\n</div>"
|
||||
if ($text =~ /\.$/) {
|
||||
$period = '';
|
||||
}
|
||||
return '<dl compact class=seemodule>'
|
||||
. "\n <dt>Module <b><tt class=module><a href=\"module-$key.html\">"
|
||||
. "$module</a></tt>:</b>"
|
||||
. "\n <dd>$text$period\n </dl>"
|
||||
. $_;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue