[GRASS-SVN] r60623 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 31 02:26:48 PDT 2014


Author: hcho
Date: 2014-05-31 02:26:48 -0700 (Sat, 31 May 2014)
New Revision: 60623

Modified:
   grass/trunk/lib/gis/parser.c
Log:
G_option_to_separator: added \n

Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2014-05-31 09:20:43 UTC (rev 60622)
+++ grass/trunk/lib/gis/parser.c	2014-05-31 09:26:48 UTC (rev 60623)
@@ -1457,7 +1457,8 @@
     else if (strcmp(option->answer, "tab") == 0 ||
              strcmp(option->answer, "\\t") == 0)
         sep = G_store("\t");
-    else if (strcmp(option->answer, "newline") == 0)
+    else if (strcmp(option->answer, "newline") == 0 ||
+	     strcmp(option->answer, "\\n") == 0)
         sep = G_store("\n");
     else
         sep = G_store(option->answer);



More information about the grass-commit mailing list