[GRASS-SVN] r59809 - in grass/trunk: man tools

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 19 11:09:46 PDT 2014


Author: martinl
Date: 2014-04-19 11:09:46 -0700 (Sat, 19 Apr 2014)
New Revision: 59809

Modified:
   grass/trunk/man/build_html.py
   grass/trunk/tools/mkhtml.py
Log:
fix remaining TOC issues, no TOC for index, topics, and keywords

Modified: grass/trunk/man/build_html.py
===================================================================
--- grass/trunk/man/build_html.py	2014-04-19 18:08:33 UTC (rev 59808)
+++ grass/trunk/man/build_html.py	2014-04-19 18:09:46 UTC (rev 59809)
@@ -48,7 +48,7 @@
 header2_tmpl = string.Template(\
 r""" <link rel="stylesheet" href="grassdocs.css" type="text/css">
 </head>
-<body bgcolor="#FFFFFF">
+<body style="width: 99%">
 
 <!-- this file is generated by man/build_html.py -->
 
@@ -249,7 +249,7 @@
 r"""
 <link rel="stylesheet" href="grassdocs.css" type="text/css">
 </head>
-<body bgcolor="white">
+<body style="width: 99%">
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> 
 <h2>Topics</h2>
@@ -261,7 +261,7 @@
 r"""
 <link rel="stylesheet" href="grassdocs.css" type="text/css">
 </head>
-<body bgcolor="white">
+<body style="width: 99%">
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> 
 <h2>Keywords - Index of GRASS GIS modules</h2>

Modified: grass/trunk/tools/mkhtml.py
===================================================================
--- grass/trunk/tools/mkhtml.py	2014-04-19 18:08:33 UTC (rev 59808)
+++ grass/trunk/tools/mkhtml.py	2014-04-19 18:09:46 UTC (rev 59809)
@@ -118,6 +118,9 @@
 
 
 def write_toc(data):
+    if not data:
+        return
+    
     fd = sys.stdout
     fd.write('<div class="toc">\n')
     fd.write('<ul class="toc">\n')



More information about the grass-commit mailing list