From fea6d8d1ded72345551299d93ce29d365aca5c64 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 --- 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 f270388c19..bc36912cb2 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -66,7 +66,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 = <