summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2007-04-04 04:04:36 +0000
committerot <ot@localhost>2007-04-04 04:04:36 +0000
commit8aa9a600c2d0fa224c9603efdc6c9704fdea9b08 (patch)
tree4f29222ab79c846c2d713d3a0c106e8920e07dac
parent592dc755ac3ab4cc78710974df7a03cf01e6137b (diff)
downloadmarkup-validator-8aa9a600c2d0fa224c9603efdc6c9704fdea9b08.zip
markup-validator-8aa9a600c2d0fa224c9603efdc6c9704fdea9b08.tar.gz
markup-validator-8aa9a600c2d0fa224c9603efdc6c9704fdea9b08.tar.bz2
silent recovery if HTML::Tidy not present or needed
-rwxr-xr-xhttpd/cgi-bin/check12
1 files changed, 10 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 95547a9..a002993 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.493 2007-04-02 06:46:32 ot Exp $
+# $Id: check,v 1.494 2007-04-04 04:04:36 ot Exp $
#
# Disable buffering on STDOUT!
@@ -180,7 +180,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.493 $;
+ $VERSION = q$Revision: 1.494 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -841,7 +841,15 @@ if (! $File->{'Is Valid'}) {
$File->{'Tidy_OK'} = FALSE;
}
}
+else {
+ # if document is valid, we don't really need tidy, do we?
+ $File->{'Tidy_OK'} = FALSE;
+}
+if ($File->{'Tidy_OK'} eq FALSE) {
+ # if tidy not available, disable
+ $File->{Opt}->{'Show Tidy'} = FALSE;
+}
my $template;