From 8a8b95228ce65c65212d44d7e5a64253527febbe Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 19 Apr 2018 22:05:00 +0200 Subject: Remove message newline (telegram). #399 --- bridge/helper/helper.go | 1 + 1 file changed, 1 insertion(+) (limited to 'bridge') diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go index 5fdc6ecc..c4ac0ae2 100644 --- a/bridge/helper/helper.go +++ b/bridge/helper/helper.go @@ -97,5 +97,6 @@ func RemoveEmptyNewLines(msg string) string { lines += line + "\n" } } + lines = strings.TrimRight(lines, "\n") return lines } -- cgit v1.2.3