Skip to content

Commit

Permalink
Fix blank newline on Render func
Browse files Browse the repository at this point in the history
Closes johnmccabe#5

- App app lines already get a newline rendered via `\n` so `fmt.Println` was just adding a blank new line at the end
  • Loading branch information
jloh committed Aug 18, 2021
1 parent 48c7546 commit 56ce761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 56ce761

Please sign in to comment.