[GRASS-SVN] r69601 - grass/trunk/man
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 28 16:55:38 PDT 2016
Author: annakrat
Date: 2016-09-28 16:55:37 -0700 (Wed, 28 Sep 2016)
New Revision: 69601
Modified:
grass/trunk/man/build_check.py
grass/trunk/man/build_check_rest.py
grass/trunk/man/build_class.py
grass/trunk/man/build_class_rest.py
grass/trunk/man/build_full_index.py
grass/trunk/man/build_full_index_rest.py
grass/trunk/man/build_html.py
grass/trunk/man/build_rest.py
Log:
doc: fix inconsistent tabs and spaces in python scripts for manuals generation
Modified: grass/trunk/man/build_check.py
===================================================================
--- grass/trunk/man/build_check.py 2016-09-28 21:23:10 UTC (rev 69600)
+++ grass/trunk/man/build_check.py 2016-09-28 23:55:37 UTC (rev 69601)
@@ -15,7 +15,7 @@
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"""
----------------------------------------------------------------------
Modified: grass/trunk/man/build_check_rest.py
===================================================================
--- grass/trunk/man/build_check_rest.py 2016-09-28 21:23:10 UTC (rev 69600)
+++ grass/trunk/man/build_check_rest.py 2016-09-28 23:55:37 UTC (rev 69601)
@@ -15,7 +15,7 @@
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"""
----------------------------------------------------------------------
Modified: grass/trunk/man/build_class.py
===================================================================
--- grass/trunk/man/build_class.py 2016-09-28 21:23:10 UTC (rev 69600)
+++ grass/trunk/man/build_class.py 2016-09-28 23:55:37 UTC (rev 69601)
@@ -44,8 +44,8 @@
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)
Modified: grass/trunk/man/build_class_rest.py
===================================================================
--- grass/trunk/man/build_class_rest.py 2016-09-28 21:23:10 UTC (rev 69600)
+++ grass/trunk/man/build_class_rest.py 2016-09-28 23:55:37 UTC (rev 69601)
@@ -33,7 +33,7 @@
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")
Modified: grass/trunk/man/build_full_index.py
===================================================================
--- grass/trunk/man/build_full_index.py 2016-09-28 21:23:10 UTC (rev 69600)
+++ grass/trunk/man/build_full_index.py 2016-09-28 23:55:37 UTC (rev 69601)
@@ -33,7 +33,7 @@
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 @@
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)
Modified: grass/trunk/man/build_full_index_rest.py
===================================================================
--- grass/trunk/man/build_full_index_rest.py 2016-09-28 21:23:10 UTC (rev 69600)
+++ grass/trunk/man/build_full_index_rest.py 2016-09-28 23:55:37 UTC (rev 69601)
@@ -15,7 +15,7 @@
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 @@
#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 @@
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")
Modified: grass/trunk/man/build_html.py
===================================================================
--- grass/trunk/man/build_html.py 2016-09-28 21:23:10 UTC (rev 69600)
+++ grass/trunk/man/build_html.py 2016-09-28 23:55:37 UTC (rev 69601)
@@ -152,9 +152,9 @@
</ul></td>
<td width="33%" valign="top" class="box"><h3> 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> Temporal processing</h3>
Modified: grass/trunk/man/build_rest.py
===================================================================
--- grass/trunk/man/build_rest.py 2016-09-28 21:23:10 UTC (rev 69600)
+++ grass/trunk/man/build_rest.py 2016-09-28 23:55:37 UTC (rev 69601)
@@ -67,7 +67,7 @@
.. 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>
More information about the grass-commit
mailing list