diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-28 11:30:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-28 11:30:48 +0000 |
commit | 4a51f10074911de6ccb08758e6a007629ae78b30 (patch) | |
tree | f2a2f6a4d90d983efbd0caf7b131d0399f811e41 /lib | |
parent | 4524bc04e9627e93317a7fa6e6af6252f1276a0f (diff) | |
download | redmine-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.rb | 2 |
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 |