Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 131115
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: twenrich [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.

Thanks for letting me know about this. It is a bug accidentally introduced in version 20181120. I will fix it in the next release, which I hope to get out in the next week or so. Steve
This is fixed in v20191203