开发者

How can I prevent PerlTidy from aligning my assignments?

开发者 https://www.devze.com 2023-01-03 15:31 出处:网络
By default, PerlTidy will line up assignments in my code. E.g. PerlTidy changes this... my $red = 1; my $green = 2;

By default, PerlTidy will line up assignments in my code. E.g.

PerlTidy changes this...

my $red = 1;
my $green = 2;
my $yellow = 3;
my $cyan = 4;

...into this...

my $red    = 1;
my $green  = 2;
my $yellow = 3;
my $cyan   = 4;

How do I prevent this from happening? I've trawled the manual but I ca开发者_StackOverflown't find a solution.

Thanks!


See the discussion of the -aws option (--add-whitespace). By default -aws is enabled. You can alter this behavior using -naws (deleting whitespace is OK, but don't add) or -fws (don't add or delete whitespace). Details here.

0

精彩评论

暂无评论...
验证码 换一张
取 消