On Mon Jul 08 20:59:45 2019, srchulo wrote:
Show quoted text> I'm using:
>
> perl 5, version 28, subversion 1 (v5.28.1) built for darwin-2level
> Code::TidyAll 0.74
> Perl::Tidy 20190601
>
> The command I'm running is:
>
> tidyall lib/My/Module.pm
>
> -nst
> -cab=0
> -w
> -l=120 # 120 characters per line
> -ce # 'cuddled' elses. elses appear on the same line as last brace
> -pt=2 # no parentheses spacing
> -pt=2 # High parenthesis tightness
> -bt=2 # High brace tightness
> -sbt=2 # High square bracket tightness
> -bar # opening braces right
> -nsbl # open subroutine brace on right
> -bbvt=1 # Block Brace Vertical Tightness
> -sot # stack opening tokens
> -sct # stack closing tokens
> -nsfs # no For Loop Semicolon Spaces
> -nolq # don't outdent long strings
> -isbc # --indent-spaced-block-comments
> -boc # --break-at-old-comma-breakpoints
> -bom
> -iob
>
>
> Should I not be using tidyall? Should I maybe try with a different
> command? Could you share the command that you are running with?
>
> On Mon Jul 08 19:40:30 2019, s7078hancock@gmail.com wrote:
> > I haven't been able to reproduce this.
> >
> > On Sun, Jul 7, 2019 at 3:10 PM Adam Hopkins via RT <
> > bug-Perl-Tidy@rt.cpan.org> wrote:
> >
> > > Sun Jul 07 18:10:16 2019: Request 130008 was acted upon.
> > > Transaction: Ticket created by srchulo
> > > Queue: Perl-Tidy
> > > Subject: --break-at-old-method-breakpoints not working
> > > Broken in: 20190601
> > > Severity: Normal
> > > Owner: Nobody
> > > Requestors: violapiratejunky@gmail.com
> > > Status: new
> > > Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=130008 >
> > >
> > >
> > > I am setting -bom in my .perltidyrc, and code like this:
> > >
> > > $object
> > > ->this_method()
> > > ->then_that_method();
> > >
> > > All gets put onto one line:
> > >
> > > $object->this_method()->then_that_method()
> > >
It will work if you remove the '-iob' flag. This flag tells perltidy to ignore old breakpoints, but the -bom flag needs to see them to function.
Steve