Any Way to Stop Summernote Creating <br> AND <p> Tags?

I’m using Summernote to create HTML documents that are then sent by email. The problem I have is that they are appearing double spaced when received and viewed in an email client like gmail.

Here is the code Summernote creates:

<p>Some text<br></p>
 <p>Some more text on the next line<br></p>
<p><br></p>
<p>A new paragraph<br></p>

So the double spacing is coming from creation of <p> AND <br> tags.

Is there any way to have it produce just one of these?

I’ve looked at a few ideas on the internet, but as this is an officially supported Wappler feature then I wondered if Wappler has a solution for this.

Many thanks!
Antony.

In summernote:

summernote

In gmail:

gmail

Community Page
Last updated: