From 4d082915a7f178c4d656fc1f56033b758adef97f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 19 Aug 2011 15:24:30 +1000 Subject: Enclose button labels with quotes to improve readability Signed-off-by: Peter Hutterer Reviewed-by: Julien Cristau --- src/list.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/list.c b/src/list.c index 46b8bd8..236011e 100644 --- a/src/list.c +++ b/src/list.c @@ -159,7 +159,10 @@ print_classes_xi2(Display* display, XIAnyClassInfo **classes, for (j = 0; j < b->num_buttons; j++) { name = (b->labels[j]) ? XGetAtomName(display, b->labels[j]) : NULL; - printf(" %s", (name) ? name : "None"); + if (name) + printf(" \"%s\"", name); + else + printf(" None"); XFree(name); } printf("\n"); -- cgit v1.2.3