[GRASS-SVN] r43666 - grass/trunk/tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 24 08:14:07 EDT 2010
Author: glynn
Date: 2010-09-24 12:14:07 +0000 (Fri, 24 Sep 2010)
New Revision: 43666
Modified:
grass/trunk/tools/mkhtml.py
Log:
Generate valid HTML (bug #1175)
Modified: grass/trunk/tools/mkhtml.py
===================================================================
--- grass/trunk/tools/mkhtml.py 2010-09-24 12:12:13 UTC (rev 43665)
+++ grass/trunk/tools/mkhtml.py 2010-09-24 12:14:07 UTC (rev 43666)
@@ -76,10 +76,10 @@
if pattern_level > level:
for l in range(level, pattern_level):
- sys.stdout.write('%s<ul>\n' % (' ' * l * indent))
+ sys.stdout.write('%s<li><ul>\n' % (' ' * l * indent))
elif level > pattern_level:
for l in range(level, pattern_level, -1):
- sys.stdout.write('%s</ul>\n' % (' ' * (l - 1) * indent))
+ sys.stdout.write('%s</ul></li>\n' % (' ' * (l - 1) * indent))
level = pattern_level
sys.stdout.write('%s<li><a href="#%s">%s</a></li>\n' % (' ' * level * indent,
More information about the grass-commit
mailing list