diff options
author | Go MAEDA <maeda@farend.jp> | 2018-02-16 05:01:14 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-02-16 05:01:14 +0000 |
commit | 241e4cbb681f9834ebd696a7cfb6e85586c04bea (patch) | |
tree | 2d29472c13b6ab493fbe39b96de8db43cda58bbd /test | |
parent | 1518bbb38be92960b6ba2033b43ba1e9dc47e1d9 (diff) | |
download | redmine-241e4cbb681f9834ebd696a7cfb6e85586c04bea.tar.gz redmine-241e4cbb681f9834ebd696a7cfb6e85586c04bea.zip |
Enable lax_spacing for markdown formatting (#28119).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17198 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb index 938ee31dc..3acf29d70 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb @@ -89,5 +89,14 @@ STR assert_equal '<p>This is a <a href="/issues">link</a></p>', @formatter.new(text).to_html.strip end + def test_markdown_should_not_require_surrounded_empty_line + text = <<-STR +This is a list: +* One +* Two +STR + assert_equal "<p>This is a list:</p>\n\n<ul>\n<li>One</li>\n<li>Two</li>\n</ul>", @formatter.new(text).to_html.strip + end + end end |