mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-06 09:55:46 +00:00
vsh-table: Get rid of trailing spaces
Get rid of trailing spaces which can be found after last column in tables. Signed-off-by: Simon Kobyda <skobyda@redhat.com>
This commit is contained in:
parent
4b4ed783ba
commit
071488983c
@ -348,9 +348,11 @@ vshTableRowPrint(vshTableRowPtr row,
|
||||
for (i = 0; i < row->ncells; i++) {
|
||||
virBufferAsprintf(buf, " %s", row->cells[i]);
|
||||
|
||||
if (i < (row->ncells - 1)) {
|
||||
for (j = 0; j < maxwidths[i] - widths[i] + 2; j++)
|
||||
virBufferAddChar(buf, ' ');
|
||||
}
|
||||
}
|
||||
virBufferAddChar(buf, '\n');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user