From 9648541b65a3453b20cf798bbc39fb42c5509142 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 8 May 2013 16:02:34 +0200 Subject: Fix pass diff texts by reference. --- localworddiff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'localworddiff') diff --git a/localworddiff b/localworddiff index af29599..86c6f00 100755 --- a/localworddiff +++ b/localworddiff @@ -39,12 +39,12 @@ my $text2 = read_file( $infile2, binmode => ':utf8' ); # use console if no output file provided as third argument unless ($outfile) { - print word_diff $text1, $text2, { STYLE => 'ANSIColor' }; + print word_diff \$text1, \$text2, { STYLE => 'ANSIColor' }; exit 0; } # resolve diff -my $diff = word_diff $text1, $text2, { STYLE => 'HTMLTwoLines' }; +my $diff = word_diff \$text1, \$text2, { STYLE => 'HTMLTwoLines' }; # apply markup to each file div of resolved diff my $d = "
"; -- cgit v1.2.3