Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2903d03

Browse files
committed
tohtml(): Make module names anchors.
1 parent a1cce71 commit 2903d03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/perl/SynopsisTable.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ sub tohtml{
4242
my $name;
4343
foreach $name (split /,/, $self->{names}) {
4444
my($key,$type,$synopsis) = $self->get($name);
45-
$data .= "<dt><b><tt>$name</tt></b>\n<dd>$synopsis\n";
45+
$data .= ("<dt><b><tt><a href=\"module-$key.html\">$name</a></tt></b>"
46+
. "\n<dd>$synopsis\n");
4647
}
4748
$data .= "</dl>\n";
4849
$data;

0 commit comments

Comments
 (0)