From ba1aafe9e527469823a1fe5806a072b23df1b5ff Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 9 Jan 2025 16:10:38 +0100 Subject: [PATCH] Bug 38664: The tidy script - Fix extra blank lines and spaces around script tags Signed-off-by: Katrin Fischer --- misc/devel/tidy.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/devel/tidy.pl b/misc/devel/tidy.pl index 52fd732ca7..dd26b1e2bf 100755 --- a/misc/devel/tidy.pl +++ b/misc/devel/tidy.pl @@ -155,6 +155,8 @@ sub tidy_tt { $content =~ s###g; $content =~ s##-->##g; + $content =~ s#\n*( *)\n*#\n$1\n#g; write_file( $file, $content ); } }