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

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

index fb9e5a9675bee070558d8e217fedfb2504fa4165..9a7d8a5f520265f94e7ca590970d0027f9e09b52 100644 (file)
@@ -337,38 +337,36 @@ EXPECTED
   end
 
   def test_tables_with_lists
-    raw = <<-RAW
-This is a table with lists:
-
-|cell11|cell12|
-|cell21|ordered list
-# item
-# item 2|
-|cell31|unordered list
-* item
-* item 2|
-
-RAW
-
-    expected = <<-EXPECTED
-<p>This is a table with lists:</p>
-
-<table>
-  <tr>
-    <td>cell11</td>
-    <td>cell12</td>
-  </tr>
-  <tr>
-    <td>cell21</td>
-    <td>ordered list<br /># item<br /># item 2</td>
-  </tr>
-  <tr>
-    <td>cell31</td>
-    <td>unordered list<br />* item<br />* item 2</td>
-  </tr>
-</table>
-EXPECTED
-
+    raw = <<~RAW
+      This is a table with lists:
+
+      |cell11|cell12|
+      |cell21|ordered list
+      # item
+      # item 2|
+      |cell31|unordered list
+      * item
+      * item 2|
+
+    RAW
+    expected = <<~EXPECTED
+      <p>This is a table with lists:</p>
+
+      <table>
+        <tr>
+          <td>cell11</td>
+          <td>cell12</td>
+        </tr>
+        <tr>
+          <td>cell21</td>
+          <td>ordered list<br /># item<br /># item 2</td>
+        </tr>
+        <tr>
+          <td>cell31</td>
+          <td>unordered list<br />* item<br />* item 2</td>
+        </tr>
+      </table>
+    EXPECTED
     assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
   end