Subject: | Perltidy bug in v20150815: -lp flag not working in combination with -boc |
Date: | Fri, 16 Oct 2015 22:48:43 +0000 |
To: | "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org> |
From: | Ray Kellough <rkellough [...] mdacorporation.com> |
Hi perl tidy people!
I think I found a bug in the latest version of perl tidy (20150815). I was previously using version 20140711. What I'm seeing: the -lp flag doesn't seem to be working for nested hashes if the -boc flag is also used.
Example:
Before (i.e. this kind of thing was considered to be "tidy" in 20140711):
my %temp = ( supsup => 123,
nested => { asdf => 456,
yarg => 'yarp',
}, );
After upgrading to 20150815 I get a new result:
my %temp = (
supsup => 123,
nested => { asdf => 456,
yarg => 'yarp',
}, );
It works fine if I don't have any nesting. I'm using perl v5.20.2, on windows 7.
Thanks,
Ray