]> source.dussan.org Git - redmine.git/commitdiff
Merged r17198 to 3.3-stable (#28119).
authorGo MAEDA <maeda@farend.jp>
Sat, 31 Mar 2018 05:31:54 +0000 (05:31 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 31 Mar 2018 05:31:54 +0000 (05:31 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17248 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/markdown/formatter.rb
test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb

index bfb04774cab558b936585dc7bb947e8399f83703..2721adf3dbcda80d48d0541125c10362db3ee865 100644 (file)
@@ -138,7 +138,8 @@ module Redmine
             :strikethrough => true,
             :superscript => true,
             :no_intra_emphasis => true,
-            :footnotes => true
+            :footnotes => true,
+            :lax_spacing => true
           )
         end
       end
index 77dd93c7d3f135ebe1a6b6095146b77feaa17666..5ad67f431bcfa0744aadf9a2251573085ec52b9e 100644 (file)
@@ -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