]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
web commit by http://users.itk.ppke.hu/~cstamas/: add cstamas css
[ikiwiki.git] / 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,