cli-table icon indicating copy to clipboard operation
cli-table copied to clipboard

Remove padding from leading/trailing cells

Open pronebird opened this issue 2 years ago • 1 comments

Hi,

I am printing a table without any particular style, configured with blank border and separator:

table
  .border(Border::builder().build())
  .separator(Separator::builder().build()),

Problem is it seems that the output of the leading and trailing cell is padded with whitespace. Is it possible to drop that whitespace and print text end to end?

I have tried to use customize_fn on the leading cell and set zero padding but that does not seem to help.

pronebird avatar Feb 12 '23 19:02 pronebird

Unfortunately, there's no way to this this right now. But, I can try to add support for this over the weekend.

devashishdxt avatar Apr 26 '23 10:04 devashishdxt