need to remove trailing slashes in not one, but 2 places
htmllink needs to do it because it uses the basename of the link as the link text bestlink needs to do it because it is not always called from htmllinkmaster
parent
e79eac82b0
commit
3e17b7d612
|
@ -407,6 +407,7 @@ sub bestlink ($$) { #{{{
|
|||
# absolute links
|
||||
$cwd="";
|
||||
}
|
||||
$link=~s/\/$//;
|
||||
|
||||
do {
|
||||
my $l=$cwd;
|
||||
|
@ -541,6 +542,7 @@ sub htmllink ($$$;@) { #{{{
|
|||
my $page=shift; # the page that will contain the link (different for inline)
|
||||
my $link=shift;
|
||||
my %opts=@_;
|
||||
|
||||
$link=~s/\/$//;
|
||||
|
||||
my $bestlink;
|
||||
|
|
Loading…
Reference in New Issue