Code blocks in emails have empty newlines

Code blocks appear to be formatted with an empty newline between each line ONLY in the HTML portion of emails. They appear correctly on both the forum itself, and in the plain text portion of the email. This is not an email formatting / CSS problem - there is an actual newline inserted in the source ONLY in the email case.

An example: [iFFT Freeze/Scrub - #25 by toneburst - Questions - scsynth]

The original source text of the post looks like:

The formatted post on the website looks like:

The HTML email received, however, looks like:

In the source for the email, you can see that all newlines have been doubled:

4 Likes

I agree, this is tends to look quite off.

@techAPJ can you investigate?

3 Likes

I am unable to repro this on latest Discourse version.

HTML:

Text:

This might be an issue with your email client.