From 4a51f10074911de6ccb08758e6a007629ae78b30 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 28 Mar 2010 11:30:48 +0000 Subject: Fixes diff highlighting (#5199). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3619 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/syntax_highlighting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3