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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 29 03:30:23 PST 2017


Author: mmetz
Date: 2017-12-29 03:30:23 -0800 (Fri, 29 Dec 2017)
New Revision: 71998

Modified:
   grass/trunk/lib/gis/parser_script.c
Log:
libgis: fix multiple keywords in script template

Modified: grass/trunk/lib/gis/parser_script.c
===================================================================
--- grass/trunk/lib/gis/parser_script.c	2017-12-29 08:52:43 UTC (rev 71997)
+++ grass/trunk/lib/gis/parser_script.c	2017-12-29 11:30:23 UTC (rev 71998)
@@ -62,9 +62,11 @@
     if (st->module_info.description)
 	fprintf(fp, "#%% description: %s\n", st->module_info.description);
     if (st->module_info.keywords) {
-	fprintf(fp, "#%% keyword: ");
-	G__print_keywords(fp, NULL);
-	fprintf(fp, "\n");
+	int i;
+
+	for(i = 0; i < st->n_keys; i++) {
+	    fprintf(fp, "#%% keyword: %s\n", st->module_info.keywords[i]);
+	}
     }
     fprintf(fp, "#%%end\n");
 



More information about the grass-commit mailing list