diff options
author | ot <ot@localhost> | 2007-04-04 04:04:36 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-04-04 04:04:36 +0000 |
commit | 8aa9a600c2d0fa224c9603efdc6c9704fdea9b08 (patch) | |
tree | 4f29222ab79c846c2d713d3a0c106e8920e07dac | |
parent | 592dc755ac3ab4cc78710974df7a03cf01e6137b (diff) | |
download | markup-validator-8aa9a600c2d0fa224c9603efdc6c9704fdea9b08.zip markup-validator-8aa9a600c2d0fa224c9603efdc6c9704fdea9b08.tar.gz markup-validator-8aa9a600c2d0fa224c9603efdc6c9704fdea9b08.tar.bz2 |
silent recovery if HTML::Tidy not present or needed
-rwxr-xr-x | httpd/cgi-bin/check | 12 |
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; |