Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: the [...] ubernerd.us
Cc:
AdminCc:

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



Subject: Perltidy not properly formatting subroutine references inside subroutine execution
Date: Sat, 31 May 2014 10:56:49 -0500
To: bug-Perl-Tidy [...] rt.cpan.org
From: Andrew Pietila <the [...] ubernerd.us>
Input Code: sub startup { my $self = shift; $self->plugin( 'authentication' => { 'autoload_user' => 1, 'session_key' => rand(), 'load_user' => sub { return HaloVP::Users->load(@_); }, 'validate_user' => sub { return HaloVP::Users->login(@_); } } ); } Output Code: sub startup { my $self = shift; $self->plugin( 'authentication' => { 'autoload_user' => 1, 'session_key' => rand(), 'load_user' => sub { return HaloVP::Users->load(@_); }, 'validate_user' => sub { return HaloVP::Users->login(@_); } } ); }
Subject: Re: [rt.cpan.org #96101] Perltidy not properly formatting subroutine references inside subroutine execution
Date: Sat, 31 May 2014 12:06:02 -0700
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <s7078hancock [...] gmail.com>
This will be fixed in the next release. Steve On Sat, May 31, 2014 at 8:57 AM, Andrew Pietila via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Sat May 31 11:57:00 2014: Request 96101 was acted upon. > Transaction: Ticket created by the@ubernerd.us > Queue: Perl-Tidy > Subject: Perltidy not properly formatting subroutine references > inside subroutine execution > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: the@ubernerd.us > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=96101 > > > > Input Code: > > sub startup { > my $self = shift; > $self->plugin( > 'authentication' => { > 'autoload_user' => 1, > 'session_key' => rand(), > 'load_user' => sub { > return HaloVP::Users->load(@_); > }, > 'validate_user' => sub { > return HaloVP::Users->login(@_); > } > } > ); > } > > Output Code: > > sub startup { > my $self = shift; > $self->plugin( > 'authentication' => { > 'autoload_user' => 1, > 'session_key' => rand(), > 'load_user' => sub { > return HaloVP::Users->load(@_); > }, > 'validate_user' => sub { > return HaloVP::Users->login(@_); > } > } > ); > } > >
This is fixed in version 20140711, thanks for the report.