X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/24fcf2b97d86debeb27ab4ab46a6bc0a2f23f2b2..c134c0513389512689c549c81e68f0f68e18bb71:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index 4fc37110b..4e3011918 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -345,7 +345,8 @@ sub htmllink ($$$;$$$) { #{{{ $linktext=pagetitle(basename($link)) unless defined $linktext; - return $linktext if length $bestlink && $page eq $bestlink; + return "$linktext" + if length $bestlink && $page eq $bestlink; # TODO BUG: %renderedfiles may not have it, if the linked to page # was also added and isn't yet rendered! Note that this bug is