1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

systemctl: fix visual alignment for lines prefixed with color dots

This commit is contained in:
Michal Schmidt 2014-07-08 15:17:36 +02:00
parent 154034270c
commit b7bbdabeb4
Notes: Zbigniew Jędrzejewski-Szmek 2014-07-16 15:51:15 -04:00
Backport: bugfix

View File

@ -456,7 +456,7 @@ static int output_units_list(const UnitInfo *unit_infos, unsigned c) {
}
if (circle_len > 0)
printf("%s%s%s", on_circle, circle ? draw_special_char(DRAW_BLACK_CIRCLE) : " ", off_circle);
printf("%s%s%s ", on_circle, circle ? draw_special_char(DRAW_BLACK_CIRCLE) : " ", off_circle);
printf("%s%-*s%s %s%-*s%s %s%-*s %-*s%s %-*s",
on_active, id_len, id, off_active,