mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Multiple blank lines in pre tags are not preserved in Textile (#30099).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@17891 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ffcd722c40
commit
ef9c879718
@ -288,13 +288,14 @@ class RedCloth3 < String
|
||||
end
|
||||
end.flatten
|
||||
|
||||
# standard clean up
|
||||
incoming_entities text
|
||||
clean_white_space text
|
||||
|
||||
# start processor
|
||||
@pre_list = []
|
||||
rip_offtags text
|
||||
|
||||
# standard clean up
|
||||
incoming_entities text
|
||||
clean_white_space text
|
||||
|
||||
no_textile text
|
||||
escape_html_tags text
|
||||
# need to do this before #hard_break and #blocks
|
||||
|
||||
@ -621,6 +621,18 @@ EXPECTED
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
def test_should_preserve_multiple_blank_lines_in_pre_tags
|
||||
text = <<-STR
|
||||
<pre>
|
||||
This is some text in pre
|
||||
|
||||
|
||||
Two blank lines avobe
|
||||
</pre>
|
||||
STR
|
||||
assert_equal text.chomp, to_html(text)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def assert_html_output(to_test, expect_paragraph = true)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user