@@ -46,7 +46,7 module Redmine | |||||
46 | # Highlights +text+ using +language+ syntax |
|
46 | # Highlights +text+ using +language+ syntax | |
47 | # Should not return outer pre tag |
|
47 | # Should not return outer pre tag | |
48 | def highlight_by_language(text, language) |
|
48 | def highlight_by_language(text, language) | |
49 |
::CodeRay.scan(text, language).html( |
|
49 | ::CodeRay.scan(text, language).html(:wrap => :span) | |
50 | end |
|
50 | end | |
51 | end |
|
51 | end | |
52 | end |
|
52 | end |
@@ -720,7 +720,7 EXPECTED | |||||
720 | RAW |
|
720 | RAW | |
721 |
|
721 | |||
722 | expected = <<-EXPECTED |
|
722 | expected = <<-EXPECTED | |
723 |
<pre><code class="ruby syntaxhl"><span class=\"CodeRay\"><span class=" |
|
723 | <pre><code class="ruby syntaxhl"><span class=\"CodeRay\"><span class="comment"># Some ruby code here</span></span> | |
724 | </code></pre> |
|
724 | </code></pre> | |
725 | EXPECTED |
|
725 | EXPECTED | |
726 |
|
726 |
General Comments 0
You need to be logged in to leave comments.
Login now