ソースを参照

Comments in shell script written according to r.info

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66984 15284696-431f-4ddb-bdfa-cd5b030d7da7
Jachym Cepicky 9 年 前
コミット
6dc83858da
1 ファイル変更3 行追加2 行削除
  1. 3 2
      raster3d/r3.info/main.c

+ 3 - 2
raster3d/r3.info/main.c

@@ -482,9 +482,10 @@ int main(int argc, char *argv[])
 		fprintf(out, "description=");
 		fprintf(out, "\"%s\"\n", Rast_get_history(&hist, HIST_KEYWRD));
 		if (Rast_history_length(&hist)) {
+                    fprintf(out, "comments=\"", i);
 		    for (i = 0; i < Rast_history_length(&hist); i++)
-                        fprintf(out, "comments_%d=", i);
-			fprintf(out, "\"%s\"\n", Rast_history_line(&hist, i));
+			fprintf(out, "%s", Rast_history_line(&hist, i));
+                    fprintf(out, "\"\n");
 		}
             }
 	    else {