Closed Davidy22 closed 3 years ago
Thanks! I love implementations which consist of only removed code (seriously!) 😊
But I fiddled a bit with it locally, and found some quirks that we'd need to address to make this feature complete:
must specify at least one non-empty shape per design
error message.-c " "
works for spaces and tabs, and for actually centering and right-aligning stuff.It would be great if you can do these things as well! I understand if you don't, as it's probably more than you bargained for. In that case, just say so, and I'll merge this and add the rest myself.
I suspect the tabs thing working is happening for a similar reason to why full width spaces were working, an explicit check for only ASCII " ". Don't know enough about unicode to know if there's a general whitespace flag for characters, haven't gone in yet to take a look either
Can probably get the test cases in, might be a moment
Ok, then I would do items 1 and 2 (the tab thing and the corresponding test case), and you can do item 3 (test cases for our new alignment capability). Sounds good?
Yeah sure
Ended up being a whole lot uglier than I thought it would, bash was being very finicky about a " " and I eventually just made a flag that inserts a hard " ".
Ok, so hopefully I've improved the test runner so that it can handle whitespace arguments.
Can you please start the test case numbers at 171, I added a test case in the previous commit about the "tab thing". Thanks!
Hum, tried a bunch of stuff and eval didn't come to me. Well, my additions work without the weird workaround now, the current 170 doesn't but I'm probably missing a change on my branch.
Great - thanks a lot for your contribution! 🎉
Resolves #88