From 597e93de1b2338cb23809f39c66812909464a3a3 Mon Sep 17 00:00:00 2001 From: dubsec Date: Fri, 3 Jul 2020 16:44:43 +0200 Subject: [PATCH] lol stupid bug --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 947ef88..1870df8 100644 --- a/main.go +++ b/main.go @@ -75,12 +75,13 @@ func main() { if opts.stdin { count := 0 sc := bufio.NewScanner(os.Stdin) + msg := "" for sc.Scan() { // Stupid ms teams not handling new lines properly if opts.teams { - msg := sc.Text() + "\n" + msg = sc.Text() + "\n" } else { - msg := sc.Text() + msg = sc.Text() } if opts.rows == 0 { messages = append(messages, msg)