Bug 38664: The tidy script: remove blank line after SWITCH
The prettier plugin does not deal correctly with SWITCH https://gitlab.com/koha-community/prettier-plugin-template-toolkit/-/issues/2 Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
616102740a
commit
a3c5620cc6
|
|
@ -176,6 +176,8 @@ sub tidy_tt {
|
|||
$content =~ s#<!--</body>-->#</body>#g;
|
||||
$content =~ s#\n*( *)<script>\n*#\n$1<script>\n#g;
|
||||
$content =~ s#\n*( *)</script>\n*#\n$1</script>\n#g;
|
||||
$content =~ s#(\[%\s*SWITCH[^\]]*\]\n)\n#$1#g;
|
||||
|
||||
if ( $no_write && $pass == 2 ) {
|
||||
print $content;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue