summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuby Loo <rloo@yahoo-inc.com>2014-04-15 02:06:51 +0000
committerRuby Loo <rloo@yahoo-inc.com>2014-04-15 02:06:51 +0000
commite67ff52d845f99121402c6b9185265c989eccfa9 (patch)
tree635add9236dabda5fd9eea458e7df7be091e6d1d
parent8494418e715ced5cd519224249794cc6f5fa241f (diff)
downloadpbr-e67ff52d845f99121402c6b9185265c989eccfa9.tar.gz
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
-rw-r--r--pbr/packaging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index c4a5977..f01ce1e 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -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)