]> sourceware.org Git - dm.git/commitdiff
Adjust report field help description layout.
authorAlasdair Kergon <agk@redhat.com>
Wed, 24 Jan 2007 16:41:33 +0000 (16:41 +0000)
committerAlasdair Kergon <agk@redhat.com>
Wed, 24 Jan 2007 16:41:33 +0000 (16:41 +0000)
lib/libdm-report.c

index f3a4c8b687e8aa7920de8208d337fe583c96ac6e..9e4002c08bf6306b8d2743d10c1c1606e19f3296 100644 (file)
@@ -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;
        }
 }
This page took 0.02438 seconds and 5 git commands to generate.