Bug 38664: The tidy script - Fix extra blank lines and spaces around script tags
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
955521be23
commit
ba1aafe9e5
|
|
@ -155,6 +155,8 @@ sub tidy_tt {
|
|||
$content =~ s#<!--</head>-->#</head>#g;
|
||||
$content =~ s#<!--<body(.*)-->#<body$1#g;
|
||||
$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;
|
||||
write_file( $file, $content );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue