Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by torgny (Sexton)
on Jan 08, 2019 at 11:48 UTC ( #1228205=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1228205]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2019-11-21 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (104 votes). Check out past polls.

    Notices?