projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01960e
)
fix
author
Joey Hess
<joey@kodama.kitenet.net>
Wed, 9 Jan 2008 19:45:07 +0000
(14:45 -0500)
committer
Joey Hess
<joey@kodama.kitenet.net>
Wed, 9 Jan 2008 19:45:07 +0000
(14:45 -0500)
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 230170d859e4ec948314b1e1099abe92186f5610..46060c1b225e19fce4b8bf5e799f3f496dec3f43 100644
(file)
--- 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,