From 08ad3d407e86d0aa17fc6f6609fd3491fce7d01e Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Sun, 4 Jul 2021 12:39:18 +0300 Subject: [PATCH 10/12] Fixes failing test on CommonMark by striping the trailing whitespace returned by the footnote (#32424). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Marius BÄ‚LTEANU. --- .../lib/redmine/wiki_formatting/common_mark/formatter_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9e4896e95..b92121c55 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 @@ -149,7 +149,7 @@ class Redmine::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase EXPECTED - assert_equal expected.gsub(%r{[\r\n\t]}, ''), format(text).gsub(%r{[\r\n\t]}, '') + assert_equal expected.gsub(%r{[\r\n\t]}, ''), format(text).gsub(%r{[\r\n\t]}, '').rstrip end STR_WITH_PRE = [ -- 2.22.0