[GRASS-SVN] r74045 - grass/branches/releasebranch_7_6/tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 30 02:29:40 PST 2019
Author: neteler
Date: 2019-01-30 02:29:40 -0800 (Wed, 30 Jan 2019)
New Revision: 74045
Modified:
grass/branches/releasebranch_7_6/tools/mkhtml.py
Log:
mkhtml.py: catch Python-3.6 unicode error in escape_href() for lib/init/helptext.html (trunk, r74044)
Modified: grass/branches/releasebranch_7_6/tools/mkhtml.py
===================================================================
--- grass/branches/releasebranch_7_6/tools/mkhtml.py 2019-01-30 10:29:16 UTC (rev 74044)
+++ grass/branches/releasebranch_7_6/tools/mkhtml.py 2019-01-30 10:29:40 UTC (rev 74045)
@@ -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