[GRASS-SVN] r33503 - grass/branches/develbranch_6/general/g.mlist

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 23 03:42:34 EDT 2008


Author: neteler
Date: 2008-09-23 03:42:34 -0400 (Tue, 23 Sep 2008)
New Revision: 33503

Modified:
   grass/branches/develbranch_6/general/g.mlist/main.c
Log:
add convenient predefined 'comma' as separator (merge from trunk, r33502)

Modified: grass/branches/develbranch_6/general/g.mlist/main.c
===================================================================
--- grass/branches/develbranch_6/general/g.mlist/main.c	2008-09-23 07:41:52 UTC (rev 33502)
+++ grass/branches/develbranch_6/general/g.mlist/main.c	2008-09-23 07:42:34 UTC (rev 33503)
@@ -103,7 +103,7 @@
     opt.separator->multiple = NO;
     opt.separator->answer = "newline";
     opt.separator->description =
-	_("One-character output separator, newline, space, or tab");
+	_("One-character output separator, newline, comma, space, or tab");
 
     opt.mapset = G_define_option();
     opt.mapset->key = "mapset";
@@ -158,6 +158,8 @@
 
     if (strcmp(opt.separator->answer, "newline") == 0)
 	separator[0] = '\n';
+    else if (strcmp(opt.separator->answer, "comma") == 0)
+	separator[0] = ',';
     else if (strcmp(opt.separator->answer, "space") == 0)
 	separator[0] = ' ';
     else if (strcmp(opt.separator->answer, "tab") == 0)



More information about the grass-commit mailing list