Device names commonly include spaces. Change the output of xsetwacom list dev to enclose the device name in quotes and separate it from the type with a tab character for easier parsing.
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- I could also be convinced of other formats, but this one should do for now. tools/xsetwacom.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 2685871..34bfaed 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -847,7 +847,7 @@ static void list_one_device(Display *dpy, XDeviceInfo *info) if (nitems) { type_name = XGetAtomName(dpy, *(Atom*)data); - printf("%-16s %-10s\n", info->name, type_name); + printf("\"%-16s\"\t%-10s\n", info->name, type_name); } XFree(data); -- 1.7.2.3 ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel