From a61452fd55cd02e67e9d78b42a6c4b83a2518a00 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Mon, 22 Aug 2011 00:20:28 +0200 Subject: add term-ansicolor to development dependencies, fix Ruby 1.8.6 warning --- lib/coderay/scanner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanner.rb') diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb index 27b6153..cce8633 100644 --- a/lib/coderay/scanner.rb +++ b/lib/coderay/scanner.rb @@ -100,7 +100,7 @@ module CodeRay def encode_with_encoding code, target_encoding if code.encoding == target_encoding if code.valid_encoding? - return to_unix code + return to_unix(code) else source_encoding = guess_encoding code end -- cgit v1.2.1