Defect #30099 » 30099-fixed-30987.patch
| lib/redmine/wiki_formatting/textile/redcloth3.rb | ||
|---|---|---|
|
text.gsub!( /\r/, "\n" )
|
||
|
text.gsub!( /\t/, ' ' )
|
||
|
text.gsub!( /^ +$/, '' )
|
||
|
text.gsub!( /\n{3,}/, "\n\n" )
|
||
|
text.gsub!( /"$/, "\" " )
|
||
|
# if entire document is indented, flush
|
||
| test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | ||
|---|---|---|
|
assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
|
||
|
end
|
||
|
def test_should_not_clear_white_space_in_pre
|
||
|
text = <<-STR
|
||
|
<pre>
|
||
|
This is some text in pre
|
||
|
two whitespace line avobe here.
|
||
|
</pre>
|
||
|
STR
|
||
|
assert_equal text.chomp, to_html(text)
|
||
|
end
|
||
|
private
|
||
|
def assert_html_output(to_test, expect_paragraph = true)
|
||
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »