# Line break not working on Slack notification message

**URL:** <https://discuss.elastic.co/t/line-break-not-working-on-slack-notification-message/276824>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [June 23, 2021, 5:05pm UTC](https://discuss.elastic.co/t/line-break-not-working-on-slack-notification-message/276824 "2021-06-23T17:05:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baptiste](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baptiste/32/90708_2.png) [@baptiste](https://discuss.elastic.co/u/baptiste)\
**Post date:** [June 23, 2021, 5:05pm UTC](https://discuss.elastic.co/t/line-break-not-working-on-slack-notification-message/276824/1 "2021-06-23T17:05:08Z")

</div>

Hi!

I'm using a Trigger to send a slack message. Since couple of days all the line break (\n) seems to have disappeared in the resulting message in slack.  
Therefore the message previous and the actual message on slack don't look the same.  
I tried some solution found in this github issue report: [newline character not passing through to slack · Issue #21 · cleentfaar/slack · GitHub](https://github.com/cleentfaar/slack/issues/21) without any success.

I wanted to know if anyone already faced this issue and have some input about it before eventually reporting this on github.  
Thanks!

Trigger message:

 ![Capture d’écran 2021-06-23 à 10.02.50](https://us1.discourse-cdn.com/elastic/original/3X/9/c/9cd70832fa56d7122ca64bfa4e02f8d65f89647f.png)

Slack result:

 ![Capture d’écran 2021-06-23 à 10.03.25](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5a3818e997a0feb007a138ad88e36702c4ca7692.png)

---

<div class="post-metadata">

**Author:** ![Patrick\_Mueller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_mueller/32/109425_2.png) [@Patrick\_Mueller](https://discuss.elastic.co/u/Patrick_Mueller)\
**Post date:** [June 29, 2021, 2:38pm UTC](https://discuss.elastic.co/t/line-break-not-working-on-slack-notification-message/276824/2 "2021-06-29T14:38:15Z")

</div>

It's possible that you could replace the `-` characters at the beginning of the final lines, to the character that Slack uses for [bulleted list items](https://slack.com/help/articles/202288908-Format-your-messages) - `*`.

If that doesn't work, you could try using inline code for your list items - I'd have a blank link, then triple backtics, then the four lines, then another triple backtics.

So it would be like this, but replace %%% with triple backtics ```

```auto
Monitor {{...}}...

%%%
- Trigger {{...}}
- Severity {{...}}
...
%%%

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 27, 2021, 2:38pm UTC](https://discuss.elastic.co/t/line-break-not-working-on-slack-notification-message/276824/3 "2021-07-27T14:38:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
