From b166a70878fe6795f97271bf3b4ee78fbcfcf7b9 Mon Sep 17 00:00:00 2001 From: Andrei Kurilov <18027129+akurilov@users.noreply.github.com> Date: Mon, 14 Oct 2024 10:49:42 +0300 Subject: [PATCH] feat: conv tuning [skip ci] --- service/converter/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/converter/service.go b/service/converter/service.go index a4209b7..1a19ab7 100644 --- a/service/converter/service.go +++ b/service/converter/service.go @@ -215,7 +215,7 @@ func (c svc) convertBody(src *enmime.Envelope, dst *pb.CloudEvent, internal bool err = fmt.Errorf("%w: %s", ErrParse, "no text data") default: dst.Data = &pb.CloudEvent_TextData{ - TextData: c.cleanRecipients(txt), + TextData: strings.TrimSpace(c.cleanRecipients(txt)), } } }