The discussion revolves around excessive spacing in text/plain email content sent by Discourse. niemeyer initially reported the issue, citing an example of an email with excessive padding around the actual post content. zogstrip asked for reproduction steps, which niemeyer demonstrated by showing another example. elijah emphasized the importance of observing the issue and provided methods to do so.
niemeyer explained that the text/plain part is used by clients that cannot or prefer not to render HTML content, and that a real person complained about the odd spacing in their email client. elijah shared their positive experience with Discourse’s text/plain rendering, but noted that it should be labeled as text/markdown instead. They agreed with niemeyer that the issue is a “minor nit.”
----==_mimepart_58f8712877df0_663f8ea8de3cdc3799b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Can you describe how to reproduce this issue?
---
The text/plain part is actually used as-is by clients that cannot or prefer not to render the HTML content, which I assume is the reason why Discourse is including it in the first place. As some empirical evidence, the reason I’m reporting is that a real person with a real email client complained that the spacing is odd in the usual client that tends to work well otherwise (for some value of that).
As a real person who uses an email client (might not be real) who does see the text/plain parts, my feeling is Discourse is above average here. I have a little nit that the text is text/markdown, not text/plain, but it looks a lot better than some sites that obviously just use very poor html to text filters. “Oh, look, it forgot to strip the style sheet!”
The “minor nit” bit from the first post is probably accurate.