aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki.pm')
-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,