Fixes diff highlighting (#5199).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3619 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-03-28 11:30:48 +00:00
parent 4524bc04e9
commit 4a51f10074
2 changed files with 41 additions and 18 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ module Redmine
# Highlights +text+ using +language+ syntax
# Should not return outer pre tag
def highlight_by_language(text, language)
::CodeRay.scan(text, language).html(:line_numbers => :inline)
::CodeRay.scan(text, language).html(:line_numbers => :inline, :wrap => :span)
end
end
end