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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 12 20:56:39 PDT 2018


Author: wenzeslaus
Date: 2018-08-12 20:56:38 -0700 (Sun, 12 Aug 2018)
New Revision: 73084

Modified:
   sandbox/wenzeslaus/g.citation/g.citation.py
Log:
g.citation: split lines by br and p, not newline (tens of modules parsed in a better way)

Modified: sandbox/wenzeslaus/g.citation/g.citation.py
===================================================================
--- sandbox/wenzeslaus/g.citation/g.citation.py	2018-08-13 03:55:05 UTC (rev 73083)
+++ sandbox/wenzeslaus/g.citation/g.citation.py	2018-08-13 03:56:38 UTC (rev 73084)
@@ -297,7 +297,7 @@
 
     raw_author_lines = [
         line.strip()
-        for line in author_section.strip().splitlines()
+        for line in author_section.strip().replace("\n", " ").replace("<p>", "<br>").split("<br>")
         if line.strip()
     ]
 



More information about the grass-commit mailing list