]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/htmltidy.pm
* Add the linkify and scan hooks. These hooks can be used to implement
[git.ikiwiki.info.git] / IkiWiki / Plugin / htmltidy.pm
index 0609e72c328e5ea4fc06b945203f51f73e0e6338..19271b1366a71d848b69f36b2edc27e23c87b7da 100644 (file)
@@ -9,7 +9,7 @@ package IkiWiki::Plugin::htmltidy;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 2.00;
 use IPC::Open2;
 
 sub import { #{{{
@@ -36,8 +36,8 @@ sub sanitize (@) { #{{{
        close IN;
        waitpid $pid, 0;
 
-       return $params{content} if $sigpipe;
        $SIG{PIPE}="DEFAULT";
+       return $params{content} if $sigpipe;
 
        return $ret;
 } # }}}