Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
f0b384c778
Modificáronse 2 ficheiros con 6 adicións e 3 borrados
  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(\
 header2_tmpl = string.Template(\
 r""" <link rel="stylesheet" href="grassdocs.css" type="text/css">
 r""" <link rel="stylesheet" href="grassdocs.css" type="text/css">
 </head>
 </head>
-<body bgcolor="#FFFFFF">
+<body style="width: 99%">
 
 
 <!-- this file is generated by man/build_html.py -->
 <!-- this file is generated by man/build_html.py -->
 
 
@@ -249,7 +249,7 @@ headertopics_tmpl = \
 r"""
 r"""
 <link rel="stylesheet" href="grassdocs.css" type="text/css">
 <link rel="stylesheet" href="grassdocs.css" type="text/css">
 </head>
 </head>
-<body bgcolor="white">
+<body style="width: 99%">
 
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> 
 <h2>Topics</h2>
 <h2>Topics</h2>
@@ -261,7 +261,7 @@ headerkeywords_tmpl = \
 r"""
 r"""
 <link rel="stylesheet" href="grassdocs.css" type="text/css">
 <link rel="stylesheet" href="grassdocs.css" type="text/css">
 </head>
 </head>
-<body bgcolor="white">
+<body style="width: 99%">
 
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> 
 <h2>Keywords - Index of GRASS GIS modules</h2>
 <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):
 def write_toc(data):
+    if not data:
+        return
+    
     fd = sys.stdout
     fd = sys.stdout
     fd.write('<div class="toc">\n')
     fd.write('<div class="toc">\n')
     fd.write('<ul class="toc">\n')
     fd.write('<ul class="toc">\n')