go ahead... be a heretic | |
PerlMonks |
Perltidy indents too much when there are stacked opening tokensby will_ (Scribe) |
on Oct 20, 2014 at 13:56 UTC ( [id://1104442]=perlquestion: print w/replies, xml ) | Need Help?? |
will_ has asked for the wisdom of the Perl Monks concerning the following question:
Perltidy seems to think that this code:
...would look better like this (I disagree): It's indenting the hash keys twice, presumably because there are two opening tokens. I'm using -sot "stack opening tokens". But surely a large benefit of stacking opening parentheses and brackets is that you don't have to indent twice? It's saving vertical space but wasting horizontal space. Does anyone know the setting to control this? I've looked through the docs but not found it: http://perltidy.sourceforge.net/perltidy.html#code_indentation_control
Back to
Seekers of Perl Wisdom
|
|