From 462ab7ecc9f5c19781fab3c9a1db10ef72f864de Mon Sep 17 00:00:00 2001 From: Peter Goodspeed-Niklaus Date: Thu, 18 Jun 2026 15:39:15 +0200 Subject: [PATCH] feat: trim messages before sending --- src/main/kotlin/com/wire/github/util/TemplateHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/wire/github/util/TemplateHandler.kt b/src/main/kotlin/com/wire/github/util/TemplateHandler.kt index 8b75fc5..47c0519 100644 --- a/src/main/kotlin/com/wire/github/util/TemplateHandler.kt +++ b/src/main/kotlin/com/wire/github/util/TemplateHandler.kt @@ -30,7 +30,7 @@ class TemplateHandler { populateTemplate( mustache = template, model = response - )?.takeIf { it.isNotBlank() } + )?.trim()?.takeIf { it.isNotBlank() } } catch (exception: MustacheNotFoundException) { logger.error("MustacheNotFoundException: $exception") null