Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple lines #15

Closed
pinpox opened this issue Nov 22, 2021 · 1 comment
Closed

Support for multiple lines #15

pinpox opened this issue Nov 22, 2021 · 1 comment

Comments

@pinpox
Copy link

pinpox commented Nov 22, 2021

Newlines currently seem to be broken.
When using a template with multiple lines, only the first line is printed.

   ⚠ ⚠ ⚠ [{{.Labels.instance}}] - {{ .Labels.alertname }} is {{.Status}} ⚠ ⚠ ⚠\n{{.Annotations.description}}\n(@pinpox act accordingly)";

Will result in only the first line being send.

shammash added a commit that referenced this issue Nov 26, 2021
Do not send to IRC messages with newlines, split in multiple messages
instead (see issue #15 ).

Signed-off-by: Luca Bigliardi <shammash@google.com>
@shammash
Copy link
Collaborator

Good catch.

This should be fixed by f7034fa . I've also cut a new release (0.4.3) for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants