|Problems? Is your data what you think it is?|
Re^2: perltidy IF continuation indentationby jaa (Friar)
|on Oct 04, 2005 at 15:26 UTC||Need Help??|
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?