mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +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++) {
|
for (i = 0; i < row->ncells; i++) {
|
||||||
virBufferAsprintf(buf, " %s", row->cells[i]);
|
virBufferAsprintf(buf, " %s", row->cells[i]);
|
||||||
|
|
||||||
|
if (i < (row->ncells - 1)) {
|
||||||
for (j = 0; j < maxwidths[i] - widths[i] + 2; j++)
|
for (j = 0; j < maxwidths[i] - widths[i] + 2; j++)
|
||||||
virBufferAddChar(buf, ' ');
|
virBufferAddChar(buf, ' ');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
virBufferAddChar(buf, '\n');
|
virBufferAddChar(buf, '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user