|
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]
|