X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f77e2078726124efc9ab87b28c20b1d004012fcd..89256ab870299242c2f62858680c4a2870600a14:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index 4e4da11c5..c0f5deab6 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -618,7 +618,7 @@ sub pagename ($) { #{{{ my $type=pagetype($file); my $page=$file; - $page=~s/\Q.$type\E*$// if defined $type; + $page=~s/\Q.$type\E*$// if defined $type && !$hooks{htmlize}{$type}{keepextension}; return $page; } #}}}