diff --git a/task.go b/task.go index 798c6bfe..51a5640d 100644 --- a/task.go +++ b/task.go @@ -65,7 +65,11 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error { } if e.Summary { - for _, call := range calls { + for i, call := range calls { + if i > 0 { + e.Logger.Outf("") + e.Logger.Outf("") + } summary.Print(e.Logger, e.Taskfile.Tasks[call.Task]) } return nil diff --git a/testdata/summary/task-with-summary.txt b/testdata/summary/task-with-summary.txt index 0c10fba2..80711300 100644 --- a/testdata/summary/task-with-summary.txt +++ b/testdata/summary/task-with-summary.txt @@ -12,6 +12,8 @@ commands: - echo 'task-with-summary was executed' - echo 'another command' - exit 0 + + task: other-task-with-summary summary of other-task-with-summary