W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2004

validator/httpd/cgi-bin check,1.358,1.359

From: Ville Skytta <ville@dev.w3.org>
Date: Sat, 13 Nov 2004 21:40:13 +0000
To: www-validator-cvs@w3.org
Message-ID: <E1CT5cz-00078I-Kp@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
Prevent wrap() from breaking entities in parsetree() (#877).

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.358
retrieving revision 1.359
diff -u -d -r1.358 -r1.359
--- check	13 Nov 2004 15:55:23 -0000	1.358
+++ check	13 Nov 2004 21:40:11 -0000	1.359
@@ -1869,9 +1869,8 @@
       $prevdata .= $line;
       next;
     } elsif ($prevdata) {
-      $prevdata = &ent($prevdata);
-      $prevdata =~ s/\s+/ /go;
-      $tree .= wrap(' ' x $indent, ' ' x $indent, $prevdata) . "\n";
+      $prevdata =~ s/\s+/ /g;
+      $tree .= &ent(wrap(' ' x $indent, ' ' x $indent, $prevdata)) . "\n";
       undef $prevdata;
     }
 
Received on Saturday, 13 November 2004 21:40:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:08 UTC