Removed line numbers from syntax highlightment.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10131 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-07-29 14:52:57 +00:00
parent 08f200c487
commit e4518af32a
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ module Redmine
# Highlights +text+ using +language+ syntax # Highlights +text+ using +language+ syntax
# Should not return outer pre tag # Should not return outer pre tag
def highlight_by_language(text, language) 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 end
end end

View File

@ -720,7 +720,7 @@ EXPECTED
RAW RAW
expected = <<-EXPECTED 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> </code></pre>
EXPECTED EXPECTED