1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 18:31:14 +00:00

cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_footnotes

git-svn-id: http://svn.redmine.org/redmine/trunk@19159 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-11-22 14:33:39 +00:00
parent 6bf2bbeb0c
commit fb4a59b76f

View 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