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:
parent
08f200c487
commit
e4518af32a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue