Fix indentation inside group_and_print_sub_dirs

Change-Id: I34a737ae4914795f96900f2b72d0d15a3f5652d5
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Cristián Maureira-Fredes 2019-09-18 15:22:34 +02:00 committed by Alexandru Croitor
parent 91634c3c9b
commit 255a6d91db

View File

@ -1479,7 +1479,7 @@ def handle_subdir(
grouped_sub_dirs[condition_key] = sub_dir_list_by_key
# Print the groups.
ind = spaces(1)
ind = spaces(indent)
for condition_key in grouped_sub_dirs:
cond_ind = ind
if condition_key:
@ -2838,14 +2838,7 @@ def cmakeify_scope(
# Wrap top level examples project with some commands which
# are necessary to build examples as part of the overall
# build.
buffer_value = dedent(
"""\
qt_examples_build_begin()
{buffer_value}
qt_examples_build_end()
"""
)
buffer_value = f"\nqt_examples_build_begin()\n\n{buffer_value}\nqt_examples_build_end()"
cm_fh.write(buffer_value)