From a6ed53a0ae8a4cecdce15820b0fc23a9936ffb72 Mon Sep 17 00:00:00 2001 From: Stefan Mayr Date: Sun, 16 Nov 2025 22:15:16 +0100 Subject: [PATCH] Escape newline when truncating notification variables --- cmk/base/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmk/base/notify.py b/cmk/base/notify.py index ab85807c571..b0ff6ec4d7b 100644 --- a/cmk/base/notify.py +++ b/cmk/base/notify.py @@ -1892,7 +1892,7 @@ def format_(value: str) -> str: if len(value) > max_length: return ( value[:max_length] - + "...\nAttention: Removed remaining content because it was too long." + + "...\\nAttention: Removed remaining content because it was too long." ) return value