[GRASS-SVN] r69871 - grass/trunk/man
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 22 09:54:58 PST 2016
Author: wenzeslaus
Date: 2016-11-22 09:54:58 -0800 (Tue, 22 Nov 2016)
New Revision: 69871
Modified:
grass/trunk/man/build_keywords.py
Log:
doc: check if the keyword is non-empty
Exit with error if a parsed keyword is an empty string.
Based on grass-dev: man error on compilation
https://lists.osgeo.org/pipermail/grass-dev/2016-November/083153.html
Modified: grass/trunk/man/build_keywords.py
===================================================================
--- grass/trunk/man/build_keywords.py 2016-11-22 17:06:00 UTC (rev 69870)
+++ grass/trunk/man/build_keywords.py 2016-11-22 17:54:58 UTC (rev 69871)
@@ -42,6 +42,9 @@
key = key.split('>')[1].split('<')[0]
except:
pass
+ if not key:
+ exit("Empty keyword from file %s line: %s"
+ % (fname, lines[index_keys]))
if key not in keywords.keys():
keywords[key] = []
keywords[key].append(fname)
More information about the grass-commit
mailing list