Explorar o código

G_option_to_separator: added \n

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60623 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho %!s(int64=11) %!d(string=hai) anos
pai
achega
af2167f758
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lib/gis/parser.c

+ 2 - 1
lib/gis/parser.c

@@ -1457,7 +1457,8 @@ char* G_option_to_separator(const struct Option *option)
     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);