summaryrefslogtreecommitdiff
path: root/lib/coderay/scanner.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2011-08-22 00:20:28 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2011-08-22 00:20:28 +0200
commita61452fd55cd02e67e9d78b42a6c4b83a2518a00 (patch)
tree17f7b6a8ea057e6b4bb2c6b81af7c479e915be3e /lib/coderay/scanner.rb
parentd0f49657d751479967f284c99d6f5333686a6e0f (diff)
downloadcoderay-a61452fd55cd02e67e9d78b42a6c4b83a2518a00.tar.gz
add term-ansicolor to development dependencies, fix Ruby 1.8.6 warning
Diffstat (limited to 'lib/coderay/scanner.rb')
-rw-r--r--lib/coderay/scanner.rb2
1 files changed, 1 insertions, 1 deletions
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