From b37c411388ecb60cf16bb1ebbdb4464fe7509f53 Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Sun, 4 Jul 2021 12:37:32 +0300 Subject: [PATCH 09/12] Fixes Layout/HeredocIndentation: Use 2 spaces for indentation in a heredoc by using <<~ instead of <<- (#32424). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Marius BĂLTEANU. --- .../common_mark/formatter_test.rb | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb index 9f23dba30..9e4896e95 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb @@ -134,19 +134,19 @@ class Redmine::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase end def test_footnotes - text = <<-STR - This is some text[^1]. - - [^1]: This is the foot note + text = <<~STR + This is some text[^1]. + + [^1]: This is the foot note STR - expected = <<-EXPECTED -

This is some text1.

-
    -
  1. -

    This is the foot note

    -
  2. -
+ expected = <<~EXPECTED +

This is some text1.

+
    +
  1. +

    This is the foot note

    +
  2. +
EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), format(text).gsub(%r{[\r\n\t]}, '') -- 2.22.0