From: Joey Hess Date: Wed, 9 Jan 2008 19:45:07 +0000 (-0500) Subject: fix X-Git-Tag: 2.20~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=14002b58d2aa9b20b541f75287bac38b40677ba7;p=ikiwiki.git fix --- 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,