|
|
 |
Re: FN-FORUM: End of line (\r\n)
date posted 1st May 2007 09:06
On 30 Apr 2007, at 11:22 pm, Juraj Seffer wrote:
> What is the best way to end a line? I'm using "\r\n" in auto email
> responder but it creates one empty line after each line in Windows,
> Mac looks OK.
>
> I want to break the line just once in both systems.
Just use a \n on its own for a new line. Use two: \n\n if you want a
line space between paras. This works for me in both Windows and Mac in
every mail client I have tried.
Don't include any carriage returns in your quoted text and make sure
there's no space between your new line character and the next line of
text, or you'll get an annoying little one space indent in your output.
In other words, do this:
$output = "First line of text /nsecond line of text";
or this:
$output = "First line of text /n";
$output .= "second line of text";
and not this:
$output = "First line of text /n second line of text";
HTH
Best regards,
Ray
------------------------------
Ray McGinty Information Design
Specialising in web application development,
e-commerce and design for print.
http://www.rmid.co.uk
Listed on the Business Link North East England Service Provider Register
|
 |
|