Skip to content

Commit c3daea8

Browse files
committed
Add trailing newline only if compiler has produced output
1 parent 0be44c3 commit c3daea8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/cli/compile/compile.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,10 @@ func (r *compileResult) String() string {
367367
pathColor := color.New(color.FgHiBlack)
368368
build := r.BuilderResult
369369

370-
res := "\n"
370+
res := ""
371+
if r.CompilerOut != "" || r.CompilerErr != "" {
372+
res += fmt.Sprintln()
373+
}
371374
if len(build.GetUsedLibraries()) > 0 {
372375
libraries := table.New()
373376
libraries.SetHeader(

0 commit comments

Comments
 (0)