From e4518af32a00d1b28e0a2536679d9dc1b645802f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 29 Jul 2012 14:52:57 +0000 Subject: [PATCH] Removed line numbers from syntax highlightment. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10131 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/syntax_highlighting.rb | 2 +- test/unit/helpers/application_helper_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/syntax_highlighting.rb b/lib/redmine/syntax_highlighting.rb index 3bb2bd122..d8ad4267f 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, :line_number_anchors => false, :wrap => :span) + ::CodeRay.scan(text, language).html(:wrap => :span) end end end diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 1885f4da3..b3757b092 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -720,7 +720,7 @@ EXPECTED RAW expected = <<-EXPECTED -
1# Some ruby code here
+
# Some ruby code here
 
EXPECTED -- 2.39.5