mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Update Rouge to 4.1 (#37236).
git-svn-id: https://svn.redmine.org/redmine/trunk@22111 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7bdc0b5934
commit
dc50caf1be
2
Gemfile
2
Gemfile
@ -3,7 +3,7 @@ source 'https://rubygems.org'
|
||||
ruby '>= 2.7.0', '< 3.3.0'
|
||||
|
||||
gem 'rails', '6.1.7.2'
|
||||
gem 'rouge', '~> 4.0.0'
|
||||
gem 'rouge', '~> 4.1.0'
|
||||
gem 'request_store', '~> 1.5.0'
|
||||
gem 'mini_mime', '~> 1.1.0'
|
||||
gem "actionpack-xml_parser"
|
||||
|
||||
@ -98,6 +98,10 @@
|
||||
<td>cfscript</td>
|
||||
<td>CFScript, the CFML scripting language [aliases: cfc]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cisco_ios</td>
|
||||
<td>Cisco IOS configuration lexer</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>clean</td>
|
||||
<td>The Clean programming language (clean.cs.ru.nl)</td>
|
||||
|
||||
@ -1413,7 +1413,7 @@ class ApplicationHelperTest < Redmine::HelperTest
|
||||
</code></pre>
|
||||
RAW
|
||||
expected = <<~EXPECTED
|
||||
<pre><code class="ECMA_script syntaxhl" data-language="ECMA_script"><span class="cm">/* Hello */</span><span class="nb">document</span><span class="p">.</span><span class="nx">write</span><span class="p">(</span><span class="dl">"</span><span class="s2">Hello World!</span><span class="dl">"</span><span class="p">);</span></code></pre>
|
||||
<pre><code class="ECMA_script syntaxhl" data-language="ECMA_script"><span class="cm">/* Hello */</span><span class="nb">document</span><span class="p">.</span><span class="nf">write</span><span class="p">(</span><span class="dl">"</span><span class="s2">Hello World!</span><span class="dl">"</span><span class="p">);</span></code></pre>
|
||||
EXPECTED
|
||||
with_settings :text_formatting => 'textile' do
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user