Subject: | Adjacent closing block braces and -bli |
Date: | Sat, 30 Nov 2019 04:07:56 +0100 |
To: | bug-Perl-Tidy [...] rt.cpan.org |
From: | Thomas Wenrich <twenrich [...] gmail.com> |
Hi,
I'm getting (I suppose) wrong results with -bli for statements with
adjacent closing braces, like:
sub a
{
my %uniq;
foreach my $par (@_)
{
$uniq{$par} = 1;
}
}
Running perltidy -bli -sbl
---
sub a
{
my %uniq;
foreach my $par (@_)
{
$uniq{$par} = 1;
}
}
---
When there is a statement after the foreach block, the output is fine.
Is there workaround or easy fix for this ?
A test file as well as the .LOG are attached.
Kind regards,
Thomas
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.