mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-10 01:21:32 +00:00
Merged r1930 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.7-stable@2173 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bf45264131
commit
de86f4b965
@ -1027,7 +1027,7 @@ class RedCloth < String
|
||||
else
|
||||
htmlesc( aftertag, :NoQuotes ) if aftertag and not used_offtags['notextile']
|
||||
line = "<redpre##{ @pre_list.length }>"
|
||||
@pre_list << "#{ $3 }#{ aftertag }"
|
||||
@pre_list << "#{ $3.gsub(/<(#{ OFFTAGS })[^>]*>/, '<\\1>') }#{ aftertag }"
|
||||
end
|
||||
elsif $1 and codepre > 0
|
||||
if codepre - used_offtags.length > 0
|
||||
|
||||
@ -146,7 +146,9 @@ class ApplicationHelperTest < HelperTestCase
|
||||
"<pre><code>\nline 1\nline2</code></pre>" => "<pre><code>\nline 1\nline2</code></pre>",
|
||||
"<pre><div>content</div></pre>" => "<pre><div>content</div></pre>",
|
||||
"HTML comment: <!-- no comments -->" => "<p>HTML comment: <!-- no comments --></p>",
|
||||
"<!-- opening comment" => "<p><!-- opening comment</p>"
|
||||
"<!-- opening comment" => "<p><!-- opening comment</p>",
|
||||
# remove attributes
|
||||
"<pre class='foo'>some text</pre>" => "<pre>some text</pre>",
|
||||
}
|
||||
to_test.each { |text, result| assert_equal result, textilizable(text) }
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user