From: Alexander Popov Date: Tue, 31 Mar 2020 13:41:40 +0000 (+0300) Subject: Newline should be printed by print_checklist() that prints the table X-Git-Tag: v0.5.7~30 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=97325e595e3d38b84d6f973d2e216931083d8fcf;p=kconfig-hardened-check.git Newline should be printed by print_checklist() that prints the table --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index f56ee37..5bf50c8 100755 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -102,7 +102,6 @@ class OptCheck: print('CONFIG_{:<38}|{:^13}|{:^10}|{:^20}'.format(self.name, self.expected, self.decision, self.reason), end='') if with_results: print('| {}'.format(self.result), end='') - print() class VerCheck: @@ -129,7 +128,6 @@ class VerCheck: print('{:<91}'.format(ver_req), end='') if with_results: print('| {}'.format(self.result), end='') - print() class ComplexOptCheck: @@ -162,8 +160,8 @@ class ComplexOptCheck: print(' {:87}'.format('<<< ' + self.__class__.__name__ + ' >>>'), end='') if with_results: print('| {}'.format(self.result), end='') - print() for o in self.opts: + print() o.table_print(with_results) else: o = self.opts[0] @@ -508,6 +506,7 @@ def print_checklist(checklist, with_results): # table contents for opt in checklist: opt.table_print(with_results) + print() if debug_mode: print('-' * sep_line_len) print()