[GRASS-SVN] r70726 - grass/trunk/vector/v.what

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 4 20:26:39 PST 2017


Author: hcho
Date: 2017-03-04 20:26:39 -0800 (Sat, 04 Mar 2017)
New Revision: 70726

Modified:
   grass/trunk/vector/v.what/what.c
Log:
v.what: Fix #3306

Modified: grass/trunk/vector/v.what/what.c
===================================================================
--- grass/trunk/vector/v.what/what.c	2017-03-04 17:05:07 UTC (rev 70725)
+++ grass/trunk/vector/v.what/what.c	2017-03-05 04:26:39 UTC (rev 70726)
@@ -667,7 +667,8 @@
 		    fprintf(stdout, "Type=Area\n");
 		    break;
 		case OUTPUT_JSON:
-		    fprintf(stdout, ",\n\"Type\": \"Area\"");
+		    fprintf(stdout, "%s\n\"Type\": \"Area\"",
+			    multiple ? "" : ",");
 		    break;
 		default:
 		    fprintf(stdout, _("Type: Area\n"));



More information about the grass-commit mailing list