From 14002b58d2aa9b20b541f75287bac38b40677ba7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 9 Jan 2008 14:45:07 -0500 Subject: [PATCH] fix --- IkiWiki.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.26.2