From 141128e7684fb84a256fa687bed7e485f282e48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 13 Sep 2016 01:22:24 +0200 Subject: [PATCH] qubes/tools: fix 'column' input formating Include '\n' at the last line too. Otherwise the tool (depending on version) will complain about truncated line ('line too long'). --- qubes/tools/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes/tools/__init__.py b/qubes/tools/__init__.py index 43843480..b9db5255 100644 --- a/qubes/tools/__init__.py +++ b/qubes/tools/__init__.py @@ -524,6 +524,7 @@ def print_table(table): unit_separator = chr(31) cmd = ['column', '-t', '-s', unit_separator] text_table = '\n'.join([unit_separator.join(row) for row in table]) + text_table += '\n' # for tests... if sys.stdout != sys.__stdout__: