From 1fdec72242d370a9f9c5e9e2f821da8a934baa9e Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Tue, 10 Mar 2026 12:34:55 +0200 Subject: [PATCH] Bug 38365: Adjust t/mock_templates/opac-tmpl/bootstrap/en/modules/opac-csp.tt This file now tidies after the patch "Make tidy.pl compatible with script elements with attributes" To test: 1. prove t/db_dependent/Koha/Middleware/ContentSecurityPolicy.t Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/Middleware/ContentSecurityPolicy.t | 2 +- t/mock_templates/opac-tmpl/bootstrap/en/modules/opac-csp.tt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Middleware/ContentSecurityPolicy.t b/t/db_dependent/Koha/Middleware/ContentSecurityPolicy.t index 3e05e5c36f4..5b3b7a40e92 100755 --- a/t/db_dependent/Koha/Middleware/ContentSecurityPolicy.t +++ b/t/db_dependent/Koha/Middleware/ContentSecurityPolicy.t @@ -83,7 +83,7 @@ subtest 'test Content-Security-Policy header in a minimal environment' => sub { "Response contains Content-Security-Policy header with the expected value" ); is( - $res->content, '' . "\n", + $res->content, "\n" . ' ' . "\n", "Response contains generated nonce in the body" ); diff --git a/t/mock_templates/opac-tmpl/bootstrap/en/modules/opac-csp.tt b/t/mock_templates/opac-tmpl/bootstrap/en/modules/opac-csp.tt index 80d65e6b711..2016d86fe45 100644 --- a/t/mock_templates/opac-tmpl/bootstrap/en/modules/opac-csp.tt +++ b/t/mock_templates/opac-tmpl/bootstrap/en/modules/opac-csp.tt @@ -1,2 +1,3 @@ -[% USE raw %][% USE Koha %] -- 2.43.0