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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 28 07:17:18 PST 2012


Author: martinl
Date: 2012-12-28 07:17:18 -0800 (Fri, 28 Dec 2012)
New Revision: 54443

Modified:
   grass/trunk/tools/mkhtml.py
Log:
mkhtml: fix for meta page index


Modified: grass/trunk/tools/mkhtml.py
===================================================================
--- grass/trunk/tools/mkhtml.py	2012-12-28 15:16:38 UTC (rev 54442)
+++ grass/trunk/tools/mkhtml.py	2012-12-28 15:17:18 UTC (rev 54443)
@@ -119,13 +119,14 @@
 
 index = re.search('(<!-- meta page index:)(.*)(-->)', src_data, re.IGNORECASE)
 if index:
-    index_name = index.group(2).strip()
+    index_name_cap = index_name = index.group(2).strip()
 else:
     mod_class = pgm.split('.', 1)[0]
     index_name = index_names.get(mod_class, '')
+    index_name_cap = index_name.title()
 
 if index_name:
-    sys.stdout.write(footer_index.substitute(INDEXNAME = index_name, INDEXNAMECAP = index_name.title(),
+    sys.stdout.write(footer_index.substitute(INDEXNAME = index_name, INDEXNAMECAP = index_name_cap,
                                              YEAR = year))
 else:
     sys.stdout.write(footer_noindex.substitute(YEAR = year))



More information about the grass-commit mailing list