[GRASS-SVN] r31075 - grass/trunk/vector/v.in.ascii

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 22 16:33:31 EDT 2008


Author: neteler
Date: 2008-04-22 16:33:31 -0400 (Tue, 22 Apr 2008)
New Revision: 31075

Modified:
   grass/trunk/vector/v.in.ascii/description.html
   grass/trunk/vector/v.in.ascii/in.c
Log:
also provide 'comma' as word

Modified: grass/trunk/vector/v.in.ascii/description.html
===================================================================
--- grass/trunk/vector/v.in.ascii/description.html	2008-04-22 19:48:37 UTC (rev 31074)
+++ grass/trunk/vector/v.in.ascii/description.html	2008-04-22 20:33:31 UTC (rev 31075)
@@ -26,7 +26,8 @@
 
 <p>
 The field separator may be a character, the word '<tt>tab</tt>'
-(or '<tt>\t</tt>') for tab, or '<tt>space</tt>' (or '&nbsp;') for a blank.
+(or '<tt>\t</tt>') for tab, '<tt>space</tt>' (or '&nbsp;') for a blank,
+or '<tt>comma</tt>' for a comma.
 
 <p>
 Attribute table is only created if it is needed, i.e. when at

Modified: grass/trunk/vector/v.in.ascii/in.c
===================================================================
--- grass/trunk/vector/v.in.ascii/in.c	2008-04-22 19:48:37 UTC (rev 31074)
+++ grass/trunk/vector/v.in.ascii/in.c	2008-04-22 20:33:31 UTC (rev 31075)
@@ -208,6 +208,8 @@
 	fs = "\t";
     if (strcmp(fs, "space") == 0)
 	fs = " ";
+    if (strcmp(fs, "comma") == 0)
+        fs = ",";
 
     /* check dimension */
     if (zcoorf->answer) {



More information about the grass-commit mailing list