Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e79eac8
)
need to remove trailing slashes in not one, but 2 places
author
Joey Hess
<joey@kodama.kitenet.net>
Sat, 17 Nov 2007 21:32:02 +0000
(16:32 -0500)
committer
Joey Hess
<joey@kodama.kitenet.net>
Sat, 17 Nov 2007 21:32:02 +0000
(16:32 -0500)
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 htmllink
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index eb003a1fb9992e940dec64d2a315cca4260307c2..81a634e2b185a4c1e32ac1539e90275777405d69 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-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;