Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: How would you indent this?

by parv (Vicar)
on Mar 18, 2021 at 08:27 UTC ( #11129899=note: print w/replies, xml ) Need Help??


in reply to Re^2: How would you indent this?
in thread How would you indent this?

In my own code I have given up on lining up either fields or the braces. As long as closing brace (or a key|field) is placed in a same column or after of opening brace (or previous key|field) (via indentation of expanding tabs), I am good.

Anyone or anything (commit hook for example) else is more than free to mangle that to their own liking.

I do not understand this part if you care to explain ...

And that's not even getting into the fact that it completely dropped the ball on offering the ability to spot differences between the lines at a glance when it could easily have done so.

Replies are listed 'Best First'.
Re^4: How would you indent this?
by LanX (Sage) on Mar 18, 2021 at 21:16 UTC
    > I do not understand this part if you care to explain ...

    This particular structure is semantically a table with one empty cell. He want's this table structure to be visible.

    I'm not aware of any Perl tool with the necessary heuristics to detect that table structure and to handle empty cells.

    At best Perl::Tidy with some obscure options, but not out-of-the-box

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Re^4: How would you indent this?
by ikegami (Patriarch) on Mar 19, 2021 at 13:39 UTC

    I do not understand this part if you care to explain ...

    The rows have different number of fields, but your choice of style doesn't make that stand out like some of the other options do.

    Seeking work! You can reach me at ikegami@adaelis.com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2022-12-03 21:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?