]> source.dussan.org Git - redmine.git/commitdiff
Reverts r17891 (#30099).
authorGo MAEDA <maeda@farend.jp>
Sun, 10 Mar 2019 23:37:57 +0000 (23:37 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 10 Mar 2019 23:37:57 +0000 (23:37 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17939 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/textile/redcloth3.rb
test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb

index 5da17be5b6715d3cef17cf5e31cf89a543246041..8d83c79d9e01ff9236f0b98b4b79e8b5e488a709 100644 (file)
@@ -288,14 +288,13 @@ class RedCloth3 < String
             end
         end.flatten
 
+        # 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
index f8c7d520a22dbd78ec487944067d75a10c677c4b..4bbef9996b70cf2293cfc50e7941d62dc81efd32 100644 (file)
@@ -621,18 +621,6 @@ 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)