[GRASS-SVN] r59834 - grass/trunk/tools

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 20 06:19:45 PDT 2014


Author: martinl
Date: 2014-04-20 06:19:45 -0700 (Sun, 20 Apr 2014)
New Revision: 59834

Modified:
   grass/trunk/tools/mkhtml.py
Log:
mkhtml: support labels in page index

Modified: grass/trunk/tools/mkhtml.py
===================================================================
--- grass/trunk/tools/mkhtml.py	2014-04-20 12:48:06 UTC (rev 59833)
+++ grass/trunk/tools/mkhtml.py	2014-04-20 13:19:45 UTC (rev 59834)
@@ -222,7 +222,11 @@
 # process footer
 index = re.search('(<!-- meta page index:)(.*)(-->)', src_data, re.IGNORECASE)
 if index:
-    index_name_cap = index_name = index.group(2).strip()
+    index_name = index.group(2).strip()
+    if '|' in index_name:
+        index_name, index_name_cap = index_name.split('|', 1)
+    else:
+        index_name_cap = index_name
 else:
     mod_class = pgm.split('.', 1)[0]
     index_name = index_names.get(mod_class, '')



More information about the grass-commit mailing list