Newlines stripped in HTML email replies to notifications


(Michael Downey) #1

Continuing the discussion from Apple Mail formatting:

Seems like @techAPJ tried to fix this, at least for Apple Mail client, but I’m reproducing the same thing with current code, when sending HTML replies from GMail.

Screenshots, etc., available if necessary but it basically seems to be the same problem.


Linebreaks in posts created via email in from Gmail
(James Milligan) #2

Testing a reply from Gmail with some new paragraphs…

here…

…and here

James Milligan

Milligan.TV

07590 820739


(Michael Downey) #3

Did you double-space your email above? The problem I had was single-spaced newlines, e.g.,

line one
line two

appear on the web site as:

line oneline two


(James Milligan) #4

Yep I did. Here’s another test with this line as the first one… and this directly beneath, the ellipses should be at the end and beginning of lines 1 and 2.

James Milligan

Milligan.TV

07590 820739


(Michael Downey) #5

OK, so double space works, single space does not. Thanks for the troubleshooting.


(James Milligan) #6

No problem. Hopefully this helps @techAPJ fix the issue :smile:


(Arpit Jalan) #7

Fixed :gift:

https://github.com/discourse/discourse/pull/3010


Mails from outlook.com stripped of newlines
(Jeff Atwood) #8