Maintain line breaks in HTML email

Hi Makers, I’m trying to maintain the line breaks of a plain text output when inserting it as HTML into the “Send an email”-module of the generic email tool. I tried using replace for newline to </p>, but that did not work. Any suggestions?

You need to split by newline and then join by </p><p>

Then add one <p> at the start, and </p> at the end.

Alternatively, simply replace newline with <br>

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

3 Likes