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