summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-02-20 10:31:30 +0000
committerGo MAEDA <maeda@farend.jp>2019-02-20 10:31:30 +0000
commitef9c8797181548df46c093d05a88cc2d9173403e (patch)
tree7d8588b446f7d6064af9806aa6a2da3ce7060980 /test
parentffcd722c40c4e0e588f94cd429861d75d8645d82 (diff)
downloadredmine-ef9c8797181548df46c093d05a88cc2d9173403e.tar.gz
redmine-ef9c8797181548df46c093d05a88cc2d9173403e.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
index 4bbef9996..f8c7d520a 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
@@ -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)