X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=IkiWiki%2FPlugin%2Fhtmltidy.pm;h=e6d377f8ab96a853f0bfcbc51ab2d09126e6d14e;hb=937b24e0cf98d75dd353d80267efddcecab9e908;hp=6f3379ef457bddb7387c8485427ec88d51f5b0c5;hpb=17b2afe721d5b8fd2468fca56e91fe83bf49be64;p=ikiwiki.git diff --git a/IkiWiki/Plugin/htmltidy.pm b/IkiWiki/Plugin/htmltidy.pm index 6f3379ef4..e6d377f8a 100644 --- a/IkiWiki/Plugin/htmltidy.pm +++ b/IkiWiki/Plugin/htmltidy.pm @@ -46,7 +46,9 @@ sub sanitize (@) { waitpid $pid, 0; $SIG{PIPE}="DEFAULT"; - return "" if $sigpipe || ! defined $ret; + if ($sigpipe || ! defined $ret) { + return gettext("htmltidy failed to parse this html"); + } return $ret; }