aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_files.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/presentation/generator_files.py')
-rw-r--r--resources/tools/presentation/generator_files.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_files.py b/resources/tools/presentation/generator_files.py
index 5bc4097ca4..33c389ece5 100644
--- a/resources/tools/presentation/generator_files.py
+++ b/resources/tools/presentation/generator_files.py
@@ -197,6 +197,9 @@ def file_details_split(file_spec, input_data, frmt=u"rst"):
if _tests_in_suite(suite[u"name"], tests):
for tbl_file in table_lst:
if suite[u"name"] in tbl_file:
+ title_line = get_rst_title_char(
+ suite[u"level"] - start_lvl + 2) * \
+ len(suite[u"name"])
file_handler.write(
f"\n{suite[u'name']}\n{title_line}\n"
)
@@ -256,7 +259,7 @@ def file_details_split(file_spec, input_data, frmt=u"rst"):
title = titles.get(chapter, chapter)
file_handler.write(
f"{title}\n"
- f"{get_rst_title_char(2) * len(title)}\n\n"
+ f"{get_rst_title_char(1) * len(title)}\n\n"
f".. toctree::\n\n"
)