From 89e28616e4bbd8bdb4fe4e892ec54804551207ae Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 24 Jan 2007 16:41:33 +0000 Subject: [PATCH] Adjust report field help description layout. --- lib/libdm-report.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/libdm-report.c b/lib/libdm-report.c index f3a4c8b..9e4002c 100644 --- a/lib/libdm-report.c +++ b/lib/libdm-report.c @@ -263,9 +263,14 @@ static void _display_fields(struct dm_report *rh) if (*last_desc) log_print(" "); log_print("%s Fields", desc); + log_print("%*.*s", (int) strlen(desc) + 7, + (int) strlen(desc) + 7, + "------------------------------------------"); + } - log_print("- %-*s: %s", (int) id_len, rh->fields[f].id, rh->fields[f].desc); + /* FIXME Add line-wrapping at terminal width (or 80 cols) */ + log_print(" %-*s - %s", (int) id_len, rh->fields[f].id, rh->fields[f].desc); last_desc = desc; } } -- 2.43.5