http://www.perlmonks.org?node_id=1228205


in reply to Re: Why is perltidy using indent-columns instead of continuation-indentation when breaking up a long if-line?
in thread Why is perltidy using indent-columns instead of continuation-indentation when breaking up a long if-line?

> If i were in your shoes i wouldn‘t waste my time with questions like this.

I am not sure what you mean when you say questions like this. Is my question not appropriate for perlmonks?

> And BTW: Did you try to format the code by hand and then run perltidy on the buffer/file?

Yes. I did and the result was that perltidy disagreed with me and increased my two spaces to four.

  • Comment on Re^2: Why is perltidy using indent-columns instead of continuation-indentation when breaking up a long if-line?

Replies are listed 'Best First'.
Re^3: Why is perltidy using indent-columns instead of continuation-indentation when breaking up a long if-line?
by haukex (Chancellor) on Jan 08, 2019 at 16:36 UTC
    Is my question not appropriate for perlmonks?

    Your question is very appropriate for PerlMonks - the way I interpreted karlgoethebier's point was "don't worry too much about things that are too difficult to change" ;-) Although I do think it's worth it to investigate a bit how difficult it is to change this behavior. Personally I agree with LanX, I tend to format my own code by hand or via the editor's built-in tools and to leave perltidy for cleaning up code I get from elsewhere. But if you want to run perltidy on everything that's fine too, although AFAIK not every bit of its behavior is configurable.

    Edit: Typos.