"\n" new line not working

garryp - November 7, 2007 - 19:46
Project:tellafriend
Version:6.x-2.8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

At the code line:
$body .= "\nPersonal Message: " . $form_values['tellafriend_personal'] . "\n----------------------\n\n";

the \n new line chars do not work, as the sent email looks like this:

...Any word on your door handle parts? ---------------------- You are invited to check out...

should be:

...Any word on your door handle parts?
----------------------
You are invited to check out...

#1

garryp - November 7, 2007 - 19:47

#2

joostvdl - May 24, 2009 - 17:06
Version:5.x-1.x-dev» 6.x-2.8

Still a bug?

#3

tahani - August 28, 2009 - 00:07

I "fixed" this by changing the \n newlines to html line breaks (br). Not sure why the \n's don't work here but do in other places (webforms), but there you are. Hope this helps someone...

--Tahani

#4

elfcurry - October 26, 2009 - 15:47

Still a bug I'd say. Message formatting is ignored and nothing starts on a new line. Are newlines stripped out of the text?

Does anyone have a fix? Is there a setting or a patch?
I can't use it at present as it gives a poor impression.

 
 

Drupal is a registered trademark of Dries Buytaert.