]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_f...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:33:39 +0000 (14:33 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:33:39 +0000 (14:33 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19159 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 669e622e0b71cd09b9469a3dd9ca84a906926ee6..c78bbc5a3995d3adc382084e6e5e877bafa1fb8f 100644 (file)
@@ -601,17 +601,15 @@ STR
   end
 
   def test_footnotes
-    text = <<-STR
-This is some text[1].
-
-fn1. This is the foot note
-STR
-
-    expected = <<-EXPECTED
-<p>This is some text<sup><a href=\"#fn1\">1</a></sup>.</p>
-<p id="fn1" class="footnote"><sup>1</sup> This is the foot note</p>
-EXPECTED
+    text = <<~STR
+      This is some text[1].
 
+      fn1. This is the foot note
+    STR
+    expected = <<~EXPECTED
+      <p>This is some text<sup><a href=\"#fn1\">1</a></sup>.</p>
+      <p id="fn1" class="footnote"><sup>1</sup> This is the foot note</p>
+    EXPECTED
     assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
   end