Subject: | --indent-only inserts lots of newlines |
.perltidyrc:
<cut>
--nostandard-output
--backup-and-modify-in-place
--backup-file-extension=/
--indent-only
</cut>
source (number lines on the left):
<cut>
1 package Foo;
2
3 use Moose;
4
5 has a => ( is => 'ro', isa => 'Int' );
6 has b => ( is => 'ro', isa => 'Int' );
7 has c => ( is => 'ro', isa => 'Int' );
8
9 __PACKAGE__->meta->make_immutable;
</cut>
tidied source:
<cut>
1 package Foo;
2
3
4 use Moose;
5
6
7 has a => ( is => 'ro', isa => 'Int' );
8
9 has b => ( is => 'ro', isa => 'Int' );
10
11 has c => ( is => 'ro', isa => 'Int' );
12
13
14 __PACKAGE__->meta->make_immutable;
15
</cut>