Reply to Re: Newline

Your name:

Reply:


Posted by Carl Vondrick on 04/13/06 20:00

infernon wrote:
> What I've found is that the source actually contains a carriage return,
> but that the page doesn't render with one. I've tried this with both
> IE and FF to be sure that it wasn't a browser problem. The other side
> of it is that the command line puts the carriage return in as well.

Ah! Your problem is with the HTML output, then, rather than PHP. HTML
ignores white space. If you want to put a line return, you must put a
break in: <br /> or <br> depending on the markup you are using (XHTML OR
HTML).

Alternatively, you can wrap your code in <pre> tags, which will print
everything exactly as it is.

Carl

--
Carl Vondrick
Web-Engineer
www.carlsoft.net

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация