From 56ce7612a8bb6b540936abbd1234f6ccd95781c8 Mon Sep 17 00:00:00 2001 From: James Loh Date: Wed, 18 Aug 2021 23:34:49 +1000 Subject: [PATCH] Fix blank newline on `Render` func Closes #5 - App app lines already get a newline rendered via `\n` so `fmt.Println` was just adding a blank new line at the end --- bitbar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbar.go b/bitbar.go index f773215..43e559e 100644 --- a/bitbar.go +++ b/bitbar.go @@ -331,7 +331,7 @@ func (p *Plugin) Render() { if p.SubMenu != nil { output = output + renderSubMenu(p.SubMenu) } - fmt.Println(output) + fmt.Print(output) } func renderSubMenu(d *SubMenu) string {