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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 29 11:35:07 EST 2010


Author: martinl
Date: 2010-12-29 08:35:06 -0800 (Wed, 29 Dec 2010)
New Revision: 44764

Modified:
   grass/trunk/vector/v.what/what.c
Log:
v.what: cosmetics in output (empty lines)


Modified: grass/trunk/vector/v.what/what.c
===================================================================
--- grass/trunk/vector/v.what/what.c	2010-12-29 14:57:13 UTC (rev 44763)
+++ grass/trunk/vector/v.what/what.c	2010-12-29 16:35:06 UTC (rev 44764)
@@ -158,11 +158,11 @@
 			    north_buf);
 		}
 		else {
-		    fprintf(stdout, "\nEast: %s\nNorth: %s\n", east_buf,
+		    fprintf(stdout, "East: %s\nNorth: %s\n", east_buf,
 			    north_buf);
 		}
 		if (notty)
-		    fprintf(stderr, "\nEast: %s\nNorth: %s\n", east_buf,
+		    fprintf(stderr, "East: %s\nNorth: %s\n", east_buf,
 			    north_buf);
 	    }
 	    nlines++;
@@ -174,7 +174,7 @@
 
 	if (line + area > 0 || G_verbose() >= G_verbose_std()) {
 	    if (script) {
-		fprintf(stdout, "Map=%s\nMapset=%s\n", Map[i].name,
+		fprintf(stdout, "\nMap=%s\nMapset=%s\n", Map[i].name,
 			Map[i].mapset);
 	    }
 	    else {
@@ -205,22 +205,22 @@
 	    
 	    switch (type) {
 	    case GV_POINT:
-		sprintf(buf, "Point\n");
+		sprintf(buf, "Point");
 		break;
 	    case GV_LINE:
-		sprintf(buf, "Line\n");
+		sprintf(buf, "Line");
 		break;
 	    case GV_BOUNDARY:
-		sprintf(buf, "Boundary\n");
+		sprintf(buf, "Boundary");
 		break;
 	    case GV_FACE:
-		sprintf(buf, "Face\n");
+		sprintf(buf, "Face");
 		break;
 	    case GV_CENTROID:
-		sprintf(buf, "Centroid\n");
+		sprintf(buf, "Centroid");
 		break;
 	    default:
-		sprintf(buf, "Unknown\n");
+		sprintf(buf, "Unknown");
 	    }
 	    if (type & GV_LINES) {
 		if (G_projection() == 3)
@@ -302,7 +302,7 @@
 			fprintf(stdout, "Length=%f\n", l);
 		}
 		else {
-		    fprintf(stdout, _("Type: %s"), buf);
+		    fprintf(stdout, _("Type: %s\n"), buf);
 		    fprintf(stdout, _("Id: %d\n"), line);
 		    if (type & GV_LINES)
 			fprintf(stdout, _("Length: %f\n"), l);



More information about the grass-commit mailing list