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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 20 05:19:59 PDT 2014


Author: martinl
Date: 2014-04-20 05:19:59 -0700 (Sun, 20 Apr 2014)
New Revision: 59832

Modified:
   grass/trunk/tools/mkhtml.py
Log:
TOC: fix   tag, change _ to - in href names

Modified: grass/trunk/tools/mkhtml.py
===================================================================
--- grass/trunk/tools/mkhtml.py	2014-04-20 11:31:30 UTC (rev 59831)
+++ grass/trunk/tools/mkhtml.py	2014-04-20 12:19:59 UTC (rev 59832)
@@ -120,8 +120,10 @@
 def escape_href(label):
     # remove html tags
     label = re.sub('<[^<]+?>', '', label)
+    # fix  
+    label = label.replace(' ', '')
     # replace space with underscore + lower
-    return label.replace(' ', '_').lower()
+    return label.replace(' ', '-').lower()
 
 def write_toc(data):
     if not data:



More information about the grass-commit mailing list