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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 30 02:29:17 PST 2019


Author: neteler
Date: 2019-01-30 02:29:16 -0800 (Wed, 30 Jan 2019)
New Revision: 74044

Modified:
   grass/trunk/tools/mkhtml.py
Log:
mkhtml.py: catch Python-3.6 unicode error in escape_href() for lib/init/helptext.html

Modified: grass/trunk/tools/mkhtml.py
===================================================================
--- grass/trunk/tools/mkhtml.py	2019-01-30 09:19:34 UTC (rev 74043)
+++ grass/trunk/tools/mkhtml.py	2019-01-30 10:29:16 UTC (rev 74044)
@@ -241,6 +241,7 @@
                 fd.write('%s</ul></li>\n' % (' ' * indent))
                 in_h3 = False
 
+        text = text.replace(u'\xa0', u' ')
         fd.write('%s<li class="toc"><a href="#%s" class="toc">%s</a>' % \
                      (' ' * indent, escape_href(text), text))
         first = False



More information about the grass-commit mailing list