]> sipb.mit.edu Git - ikiwiki.git/commitdiff
fix
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 9 Jan 2008 19:45:07 +0000 (14:45 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 9 Jan 2008 19:45:07 +0000 (14:45 -0500)
IkiWiki.pm

index 230170d859e4ec948314b1e1099abe92186f5610..46060c1b225e19fce4b8bf5e799f3f496dec3f43 100644 (file)
@@ -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,