|
Lines 204-210
sub tidy_tt {
Link Here
|
| 204 |
$content =~ s#(\[%\s*SWITCH[^\]]*\]\n)\n#$1#g; |
204 |
$content =~ s#(\[%\s*SWITCH[^\]]*\]\n)\n#$1#g; |
| 205 |
|
205 |
|
| 206 |
unless ($content) { |
206 |
unless ($content) { |
| 207 |
return ( 0, "Something went wrong, Prettier generated an empty file.", [], [], [] ); |
207 |
return ( |
|
|
208 |
0, "Something went wrong, Prettier generated an empty file. The original file was kept", [], |
| 209 |
[], [] |
| 210 |
); |
| 208 |
} |
211 |
} |
| 209 |
if ( $no_write && $pass == 2 ) { |
212 |
if ( $no_write && $pass == 2 ) { |
| 210 |
print $content; |
213 |
print $content; |
| 211 |
- |
|
|