From 38d532d0cbebc3204930efdc558fd4f0e9317f35 Mon Sep 17 00:00:00 2001 From: locolupo Date: Mon, 13 Jul 2015 16:00:56 +0200 Subject: [PATCH 1/2] removing leading whitespaces in task description --- src/main/python/pybuilder/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/python/pybuilder/cli.py b/src/main/python/pybuilder/cli.py index 49d0663bd..cf0a4d33c 100644 --- a/src/main/python/pybuilder/cli.py +++ b/src/main/python/pybuilder/cli.py @@ -263,7 +263,7 @@ def length_of_longest_string(list_of_strings): def task_description(task): - return " ".join(task.description) or "" + return "".join(task.description) or "" def print_list_of_tasks(reactor, quiet=False): From d51a3ae48965fae73501a26eb81c5eb8c0273491 Mon Sep 17 00:00:00 2001 From: locolupo Date: Mon, 13 Jul 2015 16:28:06 +0200 Subject: [PATCH 2/2] fixing cli_tests --- src/unittest/python/cli_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unittest/python/cli_tests.py b/src/unittest/python/cli_tests.py index 509e79363..98e4a9ecb 100644 --- a/src/unittest/python/cli_tests.py +++ b/src/unittest/python/cli_tests.py @@ -91,8 +91,8 @@ def test_should_render_verbose_task_list_with_descriptions(self): print_list_of_tasks(self.mock_reactor, quiet=False) verify(pybuilder.cli).print_text_line('Tasks found for project "any-project-name":') - verify(pybuilder.cli).print_text_line(' task-1 - any description for task 1') - verify(pybuilder.cli).print_text_line(' task-2 - any description for task 2') + verify(pybuilder.cli).print_text_line(' task-1 - anydescriptionfortask1') + verify(pybuilder.cli).print_text_line(' task-2 - anydescriptionfortask2') class StdOutLoggerTest(unittest.TestCase):