X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e01960e90aae4185771719e9eed00b23d43431a7..931225cb50989bacf5a98852891d9dc727285c45:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index 230170d85..46060c1b2 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -613,6 +613,8 @@ sub htmlize ($$$) { #{{{ my $page=shift; my $type=shift; my $content=shift; + + my $oneline = $content !~ /\n/; if (exists $hooks{htmlize}{$type}) { $content=$hooks{htmlize}{$type}{call}->( @@ -624,8 +626,6 @@ sub htmlize ($$$) { #{{{ error("htmlization of $type not supported"); } - my $oneline = $content !~ /\n/; - run_hooks(sanitize => sub { $content=shift->( page => $page,