Line breaks when replying via email


(Thomas Schmit) #1

When replying by mail, Discourse set a line break every 70 characters or so.

Is it made on purpose ? It’s quite unsightly.


Linebreaks in posts created via email in from Gmail
(Régis Hanol) #2

It’s not Discourse that is doing it but your mail client :wink:


(Thomas Schmit) #3

Really? I use Gmail and when I look at the sent messages, there is no line breaks.


(Mittineague) #4

They aren’t so easily seen.

Some OS use “\r” some “\n” some “\r\n”

This can be fixed with “replace” code. But I don’t know if that’s what’s happening here.


(Thomas Schmit) #5

Hum… When I look at the source of my mails, there is indeed line breaks in the plain text version.

Is Discourse using this one rather than the HTML one, which may then be parsed in Markdown?


(Régis Hanol) #6

That’s exactly what’s happening (we always prefer the text version to the HTML version).


(Jeff Atwood) #7

This is changing, we will begin to prefer HTML version as the line break problem is impossible otherwise.