From 6ace7bd0dda8799cc87a9da8ea6ca130eff515aa Mon Sep 17 00:00:00 2001 From: Dawn Mathews John Date: Wed, 15 Feb 2023 22:08:40 +0530 Subject: [PATCH] Update notifications.md (#1565) - Added \ at EOL - Added `\` to escape `"` near `\n` --- docs/notifications.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/notifications.md b/docs/notifications.md index cc21754..835df44 100644 --- a/docs/notifications.md +++ b/docs/notifications.md @@ -110,7 +110,7 @@ Example using a custom report template that always sends a session report after docker run -d \ --name watchtower \ -v /var/run/docker.sock:/var/run/docker.sock \ - -e WATCHTOWER_NOTIFICATION_REPORT="true" + -e WATCHTOWER_NOTIFICATION_REPORT="true" \ -e WATCHTOWER_NOTIFICATION_URL="discord://token@channel slack://watchtower@token-a/token-b/token-c" \ -e WATCHTOWER_NOTIFICATION_TEMPLATE=" {{- if .Report -}} @@ -130,7 +130,7 @@ Example using a custom report template that always sends a session report after {{- end -}} {{- end -}} {{- else -}} - {{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}} + {{range .Entries -}}{{.Message}}{{\"\n\"}}{{- end -}} {{- end -}} " \ containrrr/watchtower