From 1679063e40b42cb98d108854e12c06eed35015b1 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 17 Jun 2013 07:32:59 +0200 Subject: menu: Align entries More than 9 menu entries in are single menu are not aligned anymore, like this: 8 entry8 9 entry9 10 entry10 Use %2d in the printf format specifier to align more than 9 entries. Signed-off-by: Sascha Hauer --- common/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/menu.c b/common/menu.c index a672e59c0b..1f0ffec53b 100644 --- a/common/menu.c +++ b/common/menu.c @@ -175,7 +175,7 @@ static void print_menu_entry(struct menu *m, struct menu_entry *me, puts(" "); } - printf(" %d: ", me->num); + printf(" %2d: ", me->num); if (selected) puts("\e[7m"); -- cgit v1.2.3