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.master
parent
18e4fa6539
commit
0c1a71896d
|
@ -47,8 +47,7 @@ sub sanitize (@) {
|
||||||
|
|
||||||
$SIG{PIPE}="DEFAULT";
|
$SIG{PIPE}="DEFAULT";
|
||||||
if ($sigpipe || ! defined $ret) {
|
if ($sigpipe || ! defined $ret) {
|
||||||
print STDERR gettext("warning: tidy failed")."\n";
|
return gettext("htmltidy failed to parse this html");
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
|
@ -28,7 +28,7 @@ ikiwiki (3.1415926) UNRELEASED; urgency=low
|
||||||
slower. (smcv)
|
slower. (smcv)
|
||||||
* Rebuild wikis on upgrade to this version to fix bloat caused
|
* Rebuild wikis on upgrade to this version to fix bloat caused
|
||||||
by the dependency bug.
|
by the dependency bug.
|
||||||
* htmltidy: Print a warning message if tidy fails. Closes: #543722
|
* htmltidy: Return an error message if tidy fails. Closes: #543722
|
||||||
* po: Fix name of translated toplevel index page. (intrigeri)
|
* po: Fix name of translated toplevel index page. (intrigeri)
|
||||||
* po: Fix display of links from a translated page to itself (ntrigeri)
|
* po: Fix display of links from a translated page to itself (ntrigeri)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue