summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-28 11:30:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-28 11:30:48 +0000
commit4a51f10074911de6ccb08758e6a007629ae78b30 (patch)
treef2a2f6a4d90d983efbd0caf7b131d0399f811e41 /lib
parent4524bc04e9627e93317a7fa6e6af6252f1276a0f (diff)
downloadredmine-4a51f10074911de6ccb08758e6a007629ae78b30.tar.gz
redmine-4a51f10074911de6ccb08758e6a007629ae78b30.zip
Fixes diff highlighting (#5199).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3619 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/syntax_highlighting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/syntax_highlighting.rb b/lib/redmine/syntax_highlighting.rb
index 3481f1f31..4455b90c7 100644
--- a/lib/redmine/syntax_highlighting.rb
+++ b/lib/redmine/syntax_highlighting.rb
@@ -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