Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing leading whitespaces in task description #145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/python/pybuilder/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def length_of_longest_string(list_of_strings):


def task_description(task):
return " ".join(task.description) or "<no description available>"
return "".join(task.description) or "<no description available>"


def print_list_of_tasks(reactor, quiet=False):
Expand Down
4 changes: 2 additions & 2 deletions src/unittest/python/cli_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down