Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: DROLSKY [...] cpan.org
Cc:
AdminCc:

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



Subject: Handling of => across multiple lines changed in the latest version.
Given this code: my $ct = Courriel::Header::ContentType->new( mime_type => 'multipart/alternative', attributes => { boundary => unique_boundary }, ); The previous versions tidied this to: my $ct = Courriel::Header::ContentType->new( mime_type => 'multipart/alternative', attributes => { boundary => unique_boundary }, ); Note that it lines up the "=>" across lines. The latest version no longer does this and instead leaves the code unchanged. This seems to only happen when the values on the right hand side also contain a "=>" construct.
Subject: Re: [rt.cpan.org #106492] Handling of => across multiple lines changed in the latest version.
Date: Mon, 17 Aug 2015 11:44:27 -0700
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <perltidy [...] users.sourceforge.net>
Dave, They align in my version (20150815). Check your version with perltidy -v. Steve On Mon, Aug 17, 2015 at 11:04 AM, Dave Rolsky via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Mon Aug 17 14:04:27 2015: Request 106492 was acted upon. > Transaction: Ticket created by DROLSKY > Queue: Perl-Tidy > Subject: Handling of => across multiple lines changed in the latest > version. > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: DROLSKY@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106492 > > > > Given this code: > > my $ct = Courriel::Header::ContentType->new( > mime_type => 'multipart/alternative', > attributes => { boundary => unique_boundary }, > ); > > The previous versions tidied this to: > > my $ct = Courriel::Header::ContentType->new( > mime_type => 'multipart/alternative', > attributes => { boundary => unique_boundary }, > ); > > Note that it lines up the "=>" across lines. The latest version no longer > does this and instead leaves the code unchanged. This seems to only happen > when the values on the right hand side also contain a "=>" construct. > >
On Mon Aug 17 14:44:46 2015, SHANCOCK wrote: Show quoted text
> Dave, > They align in my version (20150815). Check your version with perltidy -v.
Ah, this appears to be because of the "-boc" flag. Apparently the behavior of this flag has changed somehow? I wonder if I should be using "-cab=1", but it still seems like a bug that this changed.
Subject: Re: [rt.cpan.org #106492] Handling of => across multiple lines changed in the latest version
Date: Mon, 17 Aug 2015 12:30:46 -0700
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <perltidy [...] users.sourceforge.net>
Yes, it's the -boc flag. There was a bug fix for -boc in the latest version. If I add another line to the hash and use -boc it works okay, so it seems to be just for two lines. I'll look into it. Steve On Mon, Aug 17, 2015 at 11:50 AM, Dave Rolsky via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Queue: Perl-Tidy > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106492 > > > On Mon Aug 17 14:44:46 2015, SHANCOCK wrote:
> > Dave, > > They align in my version (20150815). Check your version with perltidy
> -v. > > Ah, this appears to be because of the "-boc" flag. Apparently the behavior > of this flag has changed somehow? > > I wonder if I should be using "-cab=1", but it still seems like a bug that > this changed. >
This is fixed in version 20160301