diff --git a/misc/devel/tidy.pl b/misc/devel/tidy.pl index d2c8c9984d..9fbdfe8148 100755 --- a/misc/devel/tidy.pl +++ b/misc/devel/tidy.pl @@ -176,6 +176,8 @@ sub tidy_tt { $content =~ s###g; $content =~ s#\n*( *)\n*#\n$1\n#g; + $content =~ s#(\[%\s*SWITCH[^\]]*\]\n)\n#$1#g; + if ( $no_write && $pass == 2 ) { print $content; } else {