GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 12. April, ab 19:00 Uhr nicht zur Verfügung.

Commit ae0cd724 authored by maeda's avatar maeda

Multiple blank lines in pre tags are not preserved in Textile (#30099).

Patch by Takenori TAKAKI.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent bfe21b31
......@@ -288,13 +288,14 @@ class RedCloth3 < String
# 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]}, '')
def test_should_preserve_multiple_blank_lines_in_pre_tags
text = <<-STR
This is some text in pre
Two blank lines avobe
assert_equal text.chomp, to_html(text)
def assert_html_output(to_test, expect_paragraph = true)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment