in reply to Re: perltidy IF continuation indentation
in thread perltidy IF continuation indentation
I have set my perltidy options to the ones in Damian Conway's 'Perl Best Practices', and with these, adding the brackets makes no difference.
A bit of experimentation shows that this is because I have -i=2 and -ci=2. I have both the indent and continuation-indent settings set to the same value.
Without brackets, perltidy simple inserts a series of continuation-indents.
Add the brackets, and perltidy inserts a continuation-indent in front of the IF and then, recognising the presence of a container (the brackets) adds full indents as it wraps the container content.
The observation is much appreciated, as it has lead me to a better understanding of perltidy, but sadly doesn't really help. :(
Is anyone else going to use the PBP style? Do you just live with the ugliness of continuation-indent IFs?
Regards,
Jeff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perltidy IF continuation indentation
by sauoq (Abbot) on Oct 04, 2005 at 15:40 UTC | |
by jaa (Friar) on Oct 05, 2005 at 13:16 UTC | |
by sauoq (Abbot) on Oct 05, 2005 at 18:57 UTC | |
by TheDamian (Vicar) on Oct 06, 2005 at 23:02 UTC | |
by sauoq (Abbot) on Oct 07, 2005 at 04:06 UTC | |
|