validator/httpd/cgi-bin check,1.305.2.138,1.305.2.139

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

Modified Files:
      Tag: validator-0_6_0-branch
	check 
Log Message:
Avoid warnings from empty ESIS lines in outline.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.305.2.138
retrieving revision 1.305.2.139
diff -u -d -r1.305.2.138 -r1.305.2.139
--- check	23 May 2004 08:02:57 -0000	1.305.2.138
+++ check	28 May 2004 22:13:04 -0000	1.305.2.139
@@ -2183,7 +2183,7 @@
     $heading =~ s/\\012/ /g;
     $heading =~ s/\\n/ /g;
     $heading =~ s/\s+/ /g;
-    $heading = substr($heading, 1); # chop the leading '-' or ' '.
+    $heading =~ s/^[- ]//;
     $heading = &ent($heading);
     print "  " x ($level + 2), "<li>$heading";
   }

Received on Friday, 28 May 2004 18:13:07 UTC