Browse Source

doc: fix inconsistent tabs and spaces in python scripts for manuals generation

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69601 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 8 years ago
parent
commit
8b4d7bc827

+ 1 - 1
man/build_check.py

@@ -15,7 +15,7 @@ sys.stdout.write(message_tmpl.substitute(html_dir = html_dir))
 
 for cmd in html_files('*'):
     if "DESCRIPTION" not in read_file(cmd):
-	sys.stdout.write("%s\n" % cmd[:-5])
+        sys.stdout.write("%s\n" % cmd[:-5])
 
 sys.stdout.write(r"""
 ----------------------------------------------------------------------

+ 1 - 1
man/build_check_rest.py

@@ -15,7 +15,7 @@ sys.stdout.write(message_tmpl.substitute(rest_dir = rest_dir))
 
 for cmd in rest_files('*'):
     if "DESCRIPTION" not in read_file(cmd):
-	sys.stdout.write("%s\n" % cmd[:-5])
+        sys.stdout.write("%s\n" % cmd[:-5])
 
 sys.stdout.write(r"""
 ----------------------------------------------------------------------

+ 2 - 2
man/build_class.py

@@ -44,8 +44,8 @@ for cmd in html_files(cls):
     if desc is None:
         desc = get_desc(cmd)
     f.write(desc2_tmpl.substitute(cmd = cmd,
-    			      basename = basename,
-    			      desc = desc))
+                                  basename = basename,
+                                  desc = desc))
 f.write("</table>\n")
 
 write_html_footer(f, "index.html", year)

+ 1 - 1
man/build_class_rest.py

@@ -33,7 +33,7 @@ for cmd in rest_files(cls):
     if desc is None:
         desc = get_desc(cmd)
     f.write(desc2_tmpl.substitute(basename = basename,
-    			      desc = desc))
+                                  desc = desc))
 
 write_rest_footer(f, "index.txt")
 

+ 8 - 8
man/build_full_index.py

@@ -33,7 +33,7 @@ classes = []
 for cmd in html_files('*'):
     prefix = cmd.split('.')[0]
     if prefix not in [item[0] for item in classes]:
-	classes.append((prefix, class_labels.get(prefix, prefix)))
+        classes.append((prefix, class_labels.get(prefix, prefix)))
 classes.sort(key=lambda tup: tup[0])
 
 #begin full index:
@@ -52,13 +52,13 @@ for cls, cls_label in classes:
     f.write(cmd2_tmpl.substitute(cmd_label=to_title(cls_label), cmd=cls))
     #for all modules:  
     for cmd in html_files(cls):
-	basename = os.path.splitext(cmd)[0]
-	desc = check_for_desc_override(basename)
-	if desc is None:
-	    desc = get_desc(cmd)
-	f.write(desc1_tmpl.substitute(cmd = cmd,
-				      basename = basename,
-				      desc = desc))
+        basename = os.path.splitext(cmd)[0]
+        desc = check_for_desc_override(basename)
+        if desc is None:
+            desc = get_desc(cmd)
+        f.write(desc1_tmpl.substitute(cmd = cmd,
+                                      basename = basename,
+                                      desc = desc))
     f.write("</table>\n")
 
 write_html_footer(f, "index.html", year)

+ 8 - 8
man/build_full_index_rest.py

@@ -15,7 +15,7 @@ classes = []
 for cmd in rest_files('*'):
     prefix = cmd.split('.')[0]
     if prefix not in classes:
-	classes.append(prefix)
+        classes.append(prefix)
 classes.sort()
 
 #begin full index:
@@ -31,7 +31,7 @@ f.write(full_index_header)
 #for cls in classes:
     #f.write(cmd1_tmpl.substitute(cmd = cls))
     #if cls != classes[-1]:
-	#f.write(" | ")
+        #f.write(" | ")
 
 f.write(sections)
 
@@ -40,12 +40,12 @@ for cls in classes:
     f.write(cmd2_tmpl.substitute(cmd = cls))
     #for all modules:  
     for cmd in rest_files(cls):
-	basename = os.path.splitext(cmd)[0]
-	desc = check_for_desc_override(basename)
-	if desc is None:
-	    desc = get_desc(cmd)
-	f.write(desc1_tmpl.substitute(basename = basename,
-				      desc = desc))
+        basename = os.path.splitext(cmd)[0]
+        desc = check_for_desc_override(basename)
+        if desc is None:
+            desc = get_desc(cmd)
+        f.write(desc1_tmpl.substitute(basename = basename,
+                                      desc = desc))
     f.write("\n")
 
 write_rest_footer(f, "index.txt")

+ 3 - 3
man/build_html.py

@@ -152,9 +152,9 @@ r"""<!-- the files grass${grass_version_major}.html & helptext.html file live in
       </ul></td>
       <td width="33%" valign="top" class="box"><h3>&nbsp;Database</h3>
        <ul>
-	<li class="box"><a href="databaseintro.html">Intro: database management</a></li>
-	<li class="box"><a href="sql.html">SQL support in GRASS GIS</a></li>
-	<li class="box"><a href="database.html">Database commands manual</a></li>
+        <li class="box"><a href="databaseintro.html">Intro: database management</a></li>
+        <li class="box"><a href="sql.html">SQL support in GRASS GIS</a></li>
+        <li class="box"><a href="database.html">Database commands manual</a></li>
        </ul>
       </td>
       <td width="33%" valign="top" class="box"><h3>&nbsp;Temporal processing</h3>

+ 1 - 1
man/build_rest.py

@@ -67,7 +67,7 @@ Quick Introduction
 .. toctree::
     :maxdepth: 1
 
-	How to start with GRASS <helptext.html>
+        How to start with GRASS <helptext.html>
         Intro projections and spatial transformations <projectionintro>
         Intro 2D raster map processing <rasterintro>
         Intro 3D raster map (voxel) processing <raster3dintro>