Steve,
Here are all of the arguments I'm using:
--maximum-line-length=0
--paren-tightness=2
--square-bracket-tightness=2
--entab-leading-whitespace=4
--nospace-for-semicolon
--paren-vertical-tightness=2
--brace-vertical-tightness=0
--opening-token-right
--stack-all-containers
I think the only important ones, though, are "--opening-token-right
--stack-all-containers". If you're worried about the open token being
closed, [^]})]* would also solve my problem.
Thanks,
Colin
On Tue, Apr 1, 2014 at 8:52 AM, Steve Hancock via RT <
bug-Perl-Tidy@rt.cpan.org> wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=94354 >
>
> Colin,
> Thanks for the note. I'm not quite sure what flags you are using so I
> couldn't reproduce this. But the patch might run into trouble sometimes if
> the first opening token is actually closed somewhere before the end of
> line, or if it is a quoted character. I'm not sure if this would be a real
> problem or not.
> Steve
>
>
> On Mon, Mar 31, 2014 at 4:23 PM, Colin Williams via RT <
> bug-Perl-Tidy@rt.cpan.org> wrote:
>
> following
> > to format with one level of indentation:
> >
> > Foo({
> > bar => 1,
> > });
> >
> > But the following (along with --opening-token-right) ends up with two
> > levels of indentation:
> >
> > Foo($bar, {
> > baz => 1,
> > });
> >
> > The attached patch should fix the problem.
> >
> >
>
>