fix
parent
e01960e90a
commit
14002b58d2
|
@ -613,6 +613,8 @@ sub htmlize ($$$) { #{{{
|
||||||
my $page=shift;
|
my $page=shift;
|
||||||
my $type=shift;
|
my $type=shift;
|
||||||
my $content=shift;
|
my $content=shift;
|
||||||
|
|
||||||
|
my $oneline = $content !~ /\n/;
|
||||||
|
|
||||||
if (exists $hooks{htmlize}{$type}) {
|
if (exists $hooks{htmlize}{$type}) {
|
||||||
$content=$hooks{htmlize}{$type}{call}->(
|
$content=$hooks{htmlize}{$type}{call}->(
|
||||||
|
@ -624,8 +626,6 @@ sub htmlize ($$$) { #{{{
|
||||||
error("htmlization of $type not supported");
|
error("htmlization of $type not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
my $oneline = $content !~ /\n/;
|
|
||||||
|
|
||||||
run_hooks(sanitize => sub {
|
run_hooks(sanitize => sub {
|
||||||
$content=shift->(
|
$content=shift->(
|
||||||
page => $page,
|
page => $page,
|
||||||
|
|
Loading…
Reference in New Issue