tablewriter
tablewriter copied to clipboard
Option to disable white spaces in row start
https://github.com/olekukonko/tablewriter/issues/129
Before
$ cmdctl get products heimdall
NAME REPO
heimdall practo/heimdall
After
table.SetTrimRowStart(true)
$ cmdctl get products heimdall
NAME REPO
heimdall practo/heimdall
kubectl prints like this (some users would want to keep the same convention)
@mattn what do you think?
@alok87 please add test?
@mattn looking at this critically, does it require a test?
This is not a bug fix. So I hope to add test to not break this feature.
looking forward for it getting merged
@olekukonko Please merge and release this
@alok87 I think this should just trim the row start and the row end. Can you please update to just be SetTablePadding(false)
otherwise there will be spaces at the end still which matters when using awk
@alok87 Are you still planning on completing this? If not I can open a PR to resolve https://github.com/olekukonko/tablewriter/issues/129
Yes, but waiting for test.
@woodcockjosh please go ahead and give PRs :)
I will try to work on this tomorrow
I've raised PR #144 which includes a test
@mattn we need to attend to all pending PR
Please rebase from master branch.