From 5f6bd25ff12f3c1b4870449afdf353a2ff5aafce Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Wed, 6 Sep 2006 16:16:07 +0200 Subject: [PATCH] Be a bit more friendly in the textual diff. --- tests/xml-diff.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/xml-diff.pl b/tests/xml-diff.pl index 22b828a..eba854f 100644 --- a/tests/xml-diff.pl +++ b/tests/xml-diff.pl @@ -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); } } -- 2.39.2