Skip to content

Commit

Permalink
lol stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dubsec committed Jul 3, 2020
1 parent f9eca79 commit 597e93d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 597e93d

Please sign in to comment.