# Line Break Tags in Notifications

**URL:** <https://community.gravityforms.com/t/line-break-tags-in-notifications/12147>\
**Category:** Get Help\
**Tags:** notifications, user\_can\_richedit, rich-text\
**Created:** [March 10, 2022, 4:25pm UTC](https://community.gravityforms.com/t/line-break-tags-in-notifications/12147 "2022-03-10T16:25:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.gravityforms.com/u/frank)\
**Post date:** [March 10, 2022, 4:25pm UTC](https://community.gravityforms.com/t/line-break-tags-in-notifications/12147/1 "2022-03-10T16:25:20Z")

</div>

Hello, has anyone else discovered a issue with Line Break tags within a notifications email? I have “Disable auto-formatting” checked but if I save and switch from the text editor of notifications to visual, it removes the line breaks. Any ideas?

---

<div class="post-metadata">

**Author:** ![sacom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/sacom/32/53_2.png) [@sacom](https://community.gravityforms.com/u/sacom)\
**Post date:** [March 11, 2022, 4:03pm UTC](https://community.gravityforms.com/t/line-break-tags-in-notifications/12147/2 "2022-03-11T16:03:36Z")

</div>

The only purpose of the “Disable auto-formatting” setting is in fact to stop Gravity Forms adding line breaks automatically. So you would enable this setting only if you don’t want line breaks.

This would be the case if you plan to add your own custom HTML format to the notification content. In this case, you need to create the line breaks with your own custom HTML.

For example, using `<p>HTML paragraphs. </p>` or `<br>` tags.

Note that TinyMCE (the editor used by WP and notifications) is known to remove certain HTML tags when switching from Text to Visual, so you may want to remove the Visual tab for notifications to prevent accidental lost of HTML tags, you can do this with the following snippet:

```auto
add_action( 'admin_init', 'disable_tinymce_in_gf'); 
function disable_tinymce_in_gf() {
 if ( ( RGForms::is_gravity_page() && rgget( 'page' ) == 'gf_edit_forms' && rgget( 'view' ) == 'settings' ) && rgget( 'subview' ) == 'notification' ) {
  add_filter( 'user_can_richedit', '__return_false' );
 }
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [April 10, 2022, 4:03pm UTC](https://community.gravityforms.com/t/line-break-tags-in-notifications/12147/3 "2022-04-10T16:03:53Z")

</div>

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