diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-08-27 16:27:57 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-08-27 16:27:57 -0400 |
commit | 0c1a71896d792e3fb2fe6624a2dc9fdac30e1b80 (patch) | |
tree | b9b60d267a5964c2de1a8d35b1b89f7c24feb787 /IkiWiki/Plugin/htmltidy.pm | |
parent | 18e4fa65399f2a21bd943b0e62b81a100f941d44 (diff) | |
download | ikiwiki-0c1a71896d792e3fb2fe6624a2dc9fdac30e1b80.tar ikiwiki-0c1a71896d792e3fb2fe6624a2dc9fdac30e1b80.tar.gz |
htmltidy: Return an error message if tidy fails. Closes: #543722
On second^Wthird^Wfourth thought, putting the message into the page seems
better than using stderr.
Diffstat (limited to 'IkiWiki/Plugin/htmltidy.pm')
-rw-r--r-- | IkiWiki/Plugin/htmltidy.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/htmltidy.pm b/IkiWiki/Plugin/htmltidy.pm index fc0d3b1d6..e6d377f8a 100644 --- a/IkiWiki/Plugin/htmltidy.pm +++ b/IkiWiki/Plugin/htmltidy.pm @@ -47,8 +47,7 @@ sub sanitize (@) { $SIG{PIPE}="DEFAULT"; if ($sigpipe || ! defined $ret) { - print STDERR gettext("warning: tidy failed")."\n"; - return ""; + return gettext("htmltidy failed to parse this html"); } return $ret; |