Author: dteske
Date: Fri Oct 26 19:16:17 2018
New Revision: 339783
URL: https://svnweb.freebsd.org/changeset/base/339783

Log:
  Add blank line after each item in "ngctl ls -l"
  
  The output of "ngctl ls -l" is hard to read. To make it easier, add a blank
  line after each listed item much how traditional "ls -l" does when listing
  the contents of multiple directories.
  
  Sponsored by: Smule, Inc.

Modified:
  head/usr.sbin/ngctl/list.c

Modified: head/usr.sbin/ngctl/list.c
==============================================================================
--- head/usr.sbin/ngctl/list.c  Fri Oct 26 19:03:30 2018        (r339782)
+++ head/usr.sbin/ngctl/list.c  Fri Oct 26 19:16:17 2018        (r339783)
@@ -125,6 +125,8 @@ ListCmd(int ac, char **av)
                                break;
                        ninfo++;
                        nlist->numnames--;
+                       if (nlist->numnames > 0)
+                               printf("\n");
                }
        } else {
                while (nlist->numnames > 0) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to