summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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)