From ddef9376f2e26375d51c58aa83689780b94c61df Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Oct 2018 11:29:16 -0300 Subject: [PATCH] Bug 21576: Preserve chomp chars for USE raw See bug 21526 comments 5-7 Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- t/lib/QA/TemplateFilters.pm | 2 +- t/template_filters.t | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm index 0a3fa44685..f2009cc929 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -67,7 +67,7 @@ sub _process_tt_content { } $has_use_raw++ - if $line =~ m{\[% USE raw %\]}; # Does [% Use raw %] exist? + if $line =~ m{\[%(\s|-|~)*USE raw(\s|-|~)*%\]}; # Does [% Use raw %] exist? my $e; if ( $line =~ qr{ sub { plan tests => 1; my $input = < sub { [%~ var | uri ~%] INPUT my $expected = <