Format autoindex.rst file properly

Fix the indentation of the lines following the "toctree" directive
in the autoindex.rst file, so that they are aligned under the
start of the "toctree" directive.

Change-Id: Iff4ec8ea05819f6126a7be3d1fb5238c969fca21
Closes-Bug: #1307769
This commit is contained in:
Ruby Loo 2014-04-15 02:06:51 +00:00
parent 8494418e71
commit e67ff52d84
1 changed files with 2 additions and 2 deletions

View File

@ -669,9 +669,9 @@ try:
autoindex_filename = os.path.join(source_dir, 'autoindex.rst')
with open(autoindex_filename, 'w') as autoindex:
autoindex.write(""".. toctree::
:maxdepth: 1
:maxdepth: 1
""")
""")
for module in module_list:
output_filename = os.path.join(source_dir,
"%s.rst" % module)