Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

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



Messages by Day
May 31st 2007
May 30th 2007
May 29th 2007
May 28th 2007
May 27th 2007
May 26th 2007
May 25th 2007
May 24th 2007
May 23rd 2007
May 22nd 2007
May 21st 2007
May 20th 2007
May 19th 2007
May 18th 2007
May 17th 2007
May 16th 2007
May 15th 2007
May 14th 2007
May 13th 2007
May 12th 2007
May 11th 2007
May 10th 2007
May 9th 2007
May 8th 2007
May 7th 2007
May 6th 2007
May 5th 2007
May 4th 2007
May 3rd 2007
May 2nd 2007
May 1st 2007


Messages by Month
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000