[GRASS-SVN] r53123 - grass/trunk/general/g.mlist

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 7 06:15:07 PDT 2012


Author: annakrat
Date: 2012-09-07 06:15:07 -0700 (Fri, 07 Sep 2012)
New Revision: 53123

Modified:
   grass/trunk/general/g.mlist/main.c
Log:
g.mlist: use separator instead of newline between maps of different mapsets

Modified: grass/trunk/general/g.mlist/main.c
===================================================================
--- grass/trunk/general/g.mlist/main.c	2012-09-07 11:14:24 UTC (rev 53122)
+++ grass/trunk/general/g.mlist/main.c	2012-09-07 13:15:07 UTC (rev 53123)
@@ -249,8 +249,12 @@
 	return;
 
     if (count > 0) {
-	if (any)
-	    fprintf(stdout, "\n");
+	if (any) {
+	    if (pretty)
+		fprintf(stdout, "\n");
+	    else
+		fprintf(stdout, "%s", separator);
+	}
 	G_message(_("%s available in mapset <%s>:"),
 		  elem->text, mapset);
     }



More information about the grass-commit mailing list