Browse Source

fix remaining TOC issues, no TOC for index, topics, and keywords

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59809 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
f0b384c778
2 changed files with 6 additions and 3 deletions
  1. 3 3
      man/build_html.py
  2. 3 0
      tools/mkhtml.py

+ 3 - 3
man/build_html.py

@@ -48,7 +48,7 @@ r"""
 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 @@ headertopics_tmpl = \
 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 @@ headerkeywords_tmpl = \
 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>

+ 3 - 0
tools/mkhtml.py

@@ -118,6 +118,9 @@ def create_toc(src_data):
 
 
 def write_toc(data):
+    if not data:
+        return
+    
     fd = sys.stdout
     fd.write('<div class="toc">\n')
     fd.write('<ul class="toc">\n')