use IPC::Open2;
sub import { #{{{
- IkiWiki::hook(type => "sanitize", id => "tidy", call => \&sanitize);
+ hook(type => "sanitize", id => "tidy", call => \&sanitize);
} # }}}
sub sanitize (@) { #{{{
last unless $@;
$tries--;
if ($tries < 1) {
- IkiWiki::debug("failed to run tidy: $@");
+ debug("failed to run tidy: $@");
return $params{content};
}
}