From 255a6d91db2e2e7e9087f9675a930d1e3afc3ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Wed, 18 Sep 2019 15:22:34 +0200 Subject: [PATCH] Fix indentation inside group_and_print_sub_dirs Change-Id: I34a737ae4914795f96900f2b72d0d15a3f5652d5 Reviewed-by: Leander Beernaert Reviewed-by: Alexandru Croitor --- util/cmake/pro2cmake.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 7363ace586d..bb30cfe3b19 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -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)