]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/htmltidy.pm
update for rename of recentchanges.mdwn to __8226____9__Get_CAll___64___1__42__855...
[git.ikiwiki.info.git] / IkiWiki / Plugin / htmltidy.pm
index 185d01dd68c54a3db899ee299a7a5552ba62a519..da77e60f1cb6198278e87897522fd74b553f95e9 100644 (file)
@@ -15,6 +15,7 @@ use IPC::Open2;
 sub import {
        hook(type => "getsetup", id => "tidy", call => \&getsetup);
        hook(type => "sanitize", id => "tidy", call => \&sanitize);
+       hook(type => "checkconfig", id => "tidy", call => \&checkconfig);
 }
 
 sub getsetup () {
@@ -40,6 +41,8 @@ sub checkconfig () {
 sub sanitize (@) {
        my %params=@_;
 
+       return $params{content} unless defined $config{htmltidy};
+
        my $pid;
        my $sigpipe=0;
        $SIG{PIPE}=sub { $sigpipe=1 };