Skip to content

Instantly share code, notes, and snippets.

@syohex
Created August 13, 2012 11:35
Show Gist options
  • Save syohex/3339847 to your computer and use it in GitHub Desktop.
Save syohex/3339847 to your computer and use it in GitHub Desktop.
Patch for Data::Difflet
diff --git a/lib/Data/Difflet.pm b/lib/Data/Difflet.pm
index ded0685..32fb40e 100644
--- a/lib/Data/Difflet.pm
+++ b/lib/Data/Difflet.pm
@@ -37,6 +37,7 @@ sub compare {
local $BUFFER = '';
no warnings 'redefine';
local *_ = sub($) { $self->ddf(@_) };
+ local $Term::ANSIColor::EACHLINE = "\n";
$self->_compare(@_);
return $BUFFER;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment