Add option to skip left and right borders#16
Conversation
|
I'm not sure about the name The phrase "top and tail" is an established idiom for cutting the top and bottom off something, but "left and righting something" isn't. I can't think of an obvious alternative so far. Thoughts are which also made me wonder about or meaning no orders on any of the sides. I don't like the |
|
Ah, as a non-native speaker I didn't know this idiom and was confused why you would enable the top and tail option to actually get rid of them. 😊 I guess some "-less" might sound a little less strange, as in "frameless" or "borderless". But yeah, not easy to find something clwae and precise. |
|
Staying with the original idiom, maybe "peel" could mean slicing off the other parts of the fruit. 😉 |
|
Ha. Ok, I apologise for "top and tail"! :-) I wonder whether something like: but such a general purpose option seems overkill – who is going to use "TR", for example? And I was thinking, would "NSEW" be better than "TBLR"? I'll mull some more. |
Similar to
top_and_tail, this adds an option to remove the left and right borders. It works with all three styles.Example:
Will generate the following:
Or combined with
top_and_tail(for which I introduced a shortcutedges):Note that this is based on #15 for Perl 5.8 compatibility, the actual changes can be seen in d57779d?w=1. If the other PR is not accepted, it's trivial to rebase it to
masterinstead. Also I didn't add documentation and tests yet, happy to do that if there's interest in this enhancement.