]> git.sesse.net Git - xml-template/commitdiff
Be a bit more friendly in the textual diff.
authorsgunderson@bigfoot.com <>
Wed, 6 Sep 2006 14:16:07 +0000 (16:16 +0200)
committersgunderson@bigfoot.com <>
Wed, 6 Sep 2006 14:16:07 +0000 (16:16 +0200)
tests/xml-diff.pl

index 22b828ae4f14782770f3de60feb28411a616b38a..eba854f10e7a4e8bbfa475836e3c009d5a111315 100644 (file)
@@ -70,7 +70,10 @@ sub compare {
                $d2 =~ s/\s+$//;
 
                if ($d1 ne $d2) {
-                       print STDERR "$nsuri1/$lname1 has differing textual content\n";
+                       $d1 =~ s/\n/\\n/;
+                       $d2 =~ s/\n/\\n/;
+
+                       print STDERR "$nsuri1/$lname1 has differing textual content ('$d1' vs. '$d2')\n";
                        exit(1);
                }
        }