diff --git a/webhooks.go b/webhooks.go index fa4bede..fe3a86f 100644 --- a/webhooks.go +++ b/webhooks.go @@ -114,6 +114,7 @@ func handleIssueComment(data []byte) { ) fmt.Printf(INDENT + "---\n") - msg := strings.Replace(action.Comment.Body, "\n", strings.Repeat(INDENT, 2) + "\n", -1) + stripped := strings.Replace(action.Comment.Body, "\r", "", -1) + msg := strings.Replace(stripped, "\n", strings.Repeat(INDENT, 2) + "\n", -1) fmt.Printf(strings.Repeat(INDENT, 2) + msg) }