summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-09 14:45:07 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-09 14:45:07 -0500
commit14002b58d2aa9b20b541f75287bac38b40677ba7 (patch)
treea856e5a49f211f66edabd5ab7f596e528a6e857c
parente01960e90aae4185771719e9eed00b23d43431a7 (diff)
fix
-rw-r--r--IkiWiki.pm4
1 files 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,