validator/httpd/cgi-bin check,1.622,1.623

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv7897

Modified Files:
	check 
Log Message:
Don't insert linefeeds in doctype override to avoid line numbers being off-by-one from original ones.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.622
retrieving revision 1.623
diff -u -d -r1.622 -r1.623
--- check	4 Jan 2009 12:13:26 -0000	1.622
+++ check	4 Jan 2009 12:30:49 -0000	1.623
@@ -1747,7 +1747,7 @@
     if ($File->{Opt}->{FB}->{DOCTYPE} or ($File->{Opt}->{DOCTYPE} eq $CFG->{Types}->{$File->{DOCTYPE}}->{Display} )) {
       $HTML .= $_[0]; # Stash it as is...
     } else {
-      $HTML .= "$dtd\n" . '<!-- ' . $_[0] . ' -->';
+      $HTML .= "$dtd<!-- $_[0] -->";
     }
   };
 
@@ -1764,7 +1764,7 @@
       else {
         # no original doctype present, hence none replaced already
         # => we sneak the chosen doctype before the root elt
-        $HTML .= "$dtd\n" . $_[0];
+        $HTML .= "$dtd$_[0]";
       }
     }
   };

Received on Sunday, 4 January 2009 12:31:00 UTC