The message template system does not seem to respect line breaks (carriage returns) and thus tokens like the urls to the message, or manage your subscriptions etc... which would be better appearing on multiple lines all just run together.

From what i can tell, the only line break that is respected is one between the body and the body footer, but not between the body header and the body. And not within any of the "Sections".

CommentFileSizeAuthor
#4 messaging-516012.patch989 bytesaaronbauman

Comments

Sebastian-1’s picture

yes, i have the same problem.

GregoryHeller’s picture

Status: Active » Fixed

Thanks to Jeff Miccolis over at Development seed. He suggested that i check the input format that message module is using to send emails. my default it only has html2text filter on and not the line break filter. Add that before the html2text one and you should be good to go.

Go to admin/settings/filters, click configure for the format called "messaging plain text", click the check box next to "line break converter", save the configuration, then configure the format again so you can re-arrange the filters to that line break converter appears above html2text.

aaronbauman’s picture

+1 Thanks for this fix -- just saved me a lot of headache.

aaronbauman’s picture

Status: Fixed » Needs review
StatusFileSize
new989 bytes

Here's a patch to do this on install.

raintonr’s picture

I discovered that the following 2 filters were needed in this order:

- Line break converter
- HTML to text

That is, turn them both on then visit the 'Rearrange' tab to make sure the line break converter is higher up the list (lower weight).

petednz’s picture

Isn't this pretty much what is explained here - http://drupal.org/node/252619 - perhaps more clarification in the documentation would help.

jose reyero’s picture

Status: Needs review » Fixed

Ok, thanks for the patch.

Also feel free to improve the handbook.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.