For my email templates, I have a table called Templates, and in a canvas column I put the email template. Then I can reference it with the Format() formula. The issue is that randomly it will just remove all of the spaces in the template. So if this is the template looks like this:
I have the same problem and since it was part of something bigger I assumed I overlooked something, but after inspection, this seems to be a bug caused by the format() function that removes the line breaks existing on the page (or in the canvas column).
In the format function linebreaks are created based on the position of the variables, like you see below, but this does not mean that in your (and mine) set up the linebreaks should not be respected.
@Christiaan_Huizer , @Rickard_Abraham . I found the solution. For some reason, the formatting is removed when there is no rich text formatting in the template. For example, if I add some bold text or some italicized text to the template, all the line breaks appear like normal. It’s very strange.