Merge remote-tracking branch 'xdite/highlight-utf8'

This commit is contained in:
Corey Donohoe
2012-04-10 15:27:46 -07:00
+1 -1
View File
@@ -390,7 +390,7 @@ module Gollum
end
highlighted = begin
blocks.map { |lang, code| Pygments.highlight(code, :lexer => lang) }
blocks.map { |lang, code| Pygments.highlight(code, :lexer => lang, :options => {:encoding => 'utf-8'}) }
rescue ::RubyPython::PythonError
[]
end