From 46580147a5e4590e87bfe5e9b0f4c3ff50e59821 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Tue, 9 Jan 2007 07:40:00 +0000 Subject: Reverted r471. My alternative to --strip-trailing-cr didn't work. This only affects the test target on systems without GNU diff (rare), so I'm not too worried about it. git-svn-id: https://pandoc.googlecode.com/svn/trunk@480 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/runtests.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 6292f4962..754b6e75e 100644 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -23,8 +23,7 @@ sub test_results my $testname = $_[0]; my $output = $_[1]; my $norm = $_[2]; - $output =~ s/\r$//; # remove DOS line endings if present - my $diffoutput = `diff $output $norm`; + my $diffoutput = `diff --strip-trailing-cr $output $norm`; if ($diffoutput eq "") { print "PASSED\n"; -- cgit v1.2.3