From 5c46d668718d415a89bece17ff005d8dfb253721 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. --- libdm/libdm-report.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index f3a4c8b68..9e4002c08 100644 --- a/libdm/libdm-report.c +++ b/libdm/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; } }