Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

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



Subject: Allow short nested blocks
I would like the following on a single line: my $factorial = do { reduce { $a * $b } 1 .. 11 }; But all options I try always results in: my $factorial = do { reduce { $a * $b } 1 .. 11; };
On Wed Aug 28 12:00:13 2019, justincase wrote: Show quoted text
> I would like the following on a single line: > > my $factorial = do { reduce { $a * $b } 1 .. 11 }; > > But all options I try always results in: > > my $factorial = do { > reduce { $a * $b } 1 .. 11; > };
I don't see a way to do this, but it would be nice. I'll look at it. Steve
This is fixed in v20191203.
On Tue Dec 03 10:14:31 2019, SHANCOCK wrote: Show quoted text
> This is fixed in v20191203.
It turns out that implementing this feature caused problems with another application (RPerl), so the latest release, v20200110, still has it but you have to turn it on with a flag, -olbn=1. An explanation is in the CHANGES file, https://github.com/perltidy/perltidy/blob/master/CHANGES.md