[GRASS-SVN] r73086 - sandbox/wenzeslaus/g.citation

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 12 21:01:22 PDT 2018


Author: wenzeslaus
Date: 2018-08-12 21:01:21 -0700 (Sun, 12 Aug 2018)
New Revision: 73086

Modified:
   sandbox/wenzeslaus/g.citation/g.citation.py
Log:
g.citation: parse features which are at the same line with a colon (many more modules parsed)

Modified: sandbox/wenzeslaus/g.citation/g.citation.py
===================================================================
--- sandbox/wenzeslaus/g.citation/g.citation.py	2018-08-13 03:58:38 UTC (rev 73085)
+++ sandbox/wenzeslaus/g.citation/g.citation.py	2018-08-13 04:01:21 UTC (rev 73086)
@@ -327,6 +327,8 @@
             institute = clean_line_item(ai[1])
         if " by " in name:
             feature, name = name.split(" by ", 1)
+        elif ": " in name:
+            feature, name = name.split(": ", 1)
         elif feature_heading:
             feature = feature_heading
         # TODO: handles two authors at the same line



More information about the grass-commit mailing list