mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-27 02:41:15 +00:00
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_tables_with_lists
git-svn-id: http://svn.redmine.org/redmine/trunk@19162 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
906e5fa373
commit
1fb33ba05c
@ -337,38 +337,36 @@ EXPECTED
|
||||
end
|
||||
|
||||
def test_tables_with_lists
|
||||
raw = <<-RAW
|
||||
This is a table with lists:
|
||||
raw = <<~RAW
|
||||
This is a table with lists:
|
||||
|
||||
|cell11|cell12|
|
||||
|cell21|ordered list
|
||||
# item
|
||||
# item 2|
|
||||
|cell31|unordered list
|
||||
* item
|
||||
* item 2|
|
||||
|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
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user