Updated CodeRay to 1.0.6.
Fixed multiline comments highlighting issue in file view (#7495). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9389 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -40,7 +40,7 @@ module Redmine
|
||||
# Should not return line numbers nor outer pre tag
|
||||
def highlight_by_filename(text, filename)
|
||||
language = ::CodeRay::FileType[filename]
|
||||
language ? ::CodeRay.scan(text, language).html : ERB::Util.h(text)
|
||||
language ? ::CodeRay.scan(text, language).html(:break_lines => true) : ERB::Util.h(text)
|
||||
end
|
||||
|
||||
# Highlights +text+ using +language+ syntax
|
||||
|
||||
Reference in New Issue
Block a user