[GRASS-SVN] r73094 - sandbox/wenzeslaus/g.citation
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 13 19:57:04 PDT 2018
Author: wenzeslaus
Date: 2018-08-13 19:57:04 -0700 (Mon, 13 Aug 2018)
New Revision: 73094
Modified:
sandbox/wenzeslaus/g.citation/g.citation.py
Log:
g.citation: treat ampersand as and for multiple names
Modified: sandbox/wenzeslaus/g.citation/g.citation.py
===================================================================
--- sandbox/wenzeslaus/g.citation/g.citation.py 2018-08-14 02:55:47 UTC (rev 73093)
+++ sandbox/wenzeslaus/g.citation/g.citation.py 2018-08-14 02:57:04 UTC (rev 73094)
@@ -338,6 +338,8 @@
# line/record with author unique info like email or orcid
if " and " in name:
names = name.split(" and ", 1)
+ elif " & " in name:
+ names = name.split(" & ", 1)
else:
names = [name]
for name in names:
More information about the grass-commit
mailing list