]> source.dussan.org Git - redmine.git/commitdiff
Removed line numbers from syntax highlightment.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 14:52:57 +0000 (14:52 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 14:52:57 +0000 (14:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10131 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/syntax_highlighting.rb
test/unit/helpers/application_helper_test.rb

index 3bb2bd122da648dd2d1fc46394b469a88811bef5..d8ad4267fa405daba09b5384c8a8ddd776b39a43 100644 (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, :line_number_anchors => false, :wrap => :span)
+          ::CodeRay.scan(text, language).html(:wrap => :span)
         end
       end
     end
index 1885f4da3e8d211f7533b333a4728e08c4792eff..b3757b092fe5af0de33a7976d656eab1375acc96 100644 (file)
@@ -720,7 +720,7 @@ EXPECTED
 RAW
 
     expected = <<-EXPECTED
-<pre><code class="ruby syntaxhl"><span class=\"CodeRay\"><span class="line-numbers">1</span><span class="comment"># Some ruby code here</span></span>
+<pre><code class="ruby syntaxhl"><span class=\"CodeRay\"><span class="comment"># Some ruby code here</span></span>
 </code></pre>
 EXPECTED