We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f4965 commit a61452fCopy full SHA for a61452f
Gemfile
@@ -9,6 +9,7 @@ group :development do
9
gem "bundler", "~> 1.0.0"
10
gem "rake", "~> 0.9.2"
11
gem "RedCloth"
12
+ gem "term-ansicolor"
13
gem "shoulda-context", "= 1.0.0.beta1" if RUBY_VERSION >= '1.8.7'
14
gem "json" unless RUBY_VERSION >= '1.9.1'
15
gem "rdoc" if RUBY_VERSION >= '1.8.7'
lib/coderay/scanner.rb
@@ -100,7 +100,7 @@ def lang
100
def encode_with_encoding code, target_encoding
101
if code.encoding == target_encoding
102
if code.valid_encoding?
103
- return to_unix code
+ return to_unix(code)
104
else
105
source_encoding = guess_encoding code
106
end
0 commit comments