RE: [PHP] Problem with Tabs and Newlines

2005-03-07 Thread Jay Blanchard
[snip]
I just put filesystem and size on the first line to test the \t for
creating a tab. The \t and \n don't seem to work. What am I doing
wrong here? Thanks for any help you can give me.
[/snip]


/t and /n do not work for HTML output. If you view the source of your
HTML output you will see that the tabs and newlines are used properly.
You will have to substitute an HTML equivalent.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Problem with Tabs and Newlines

2005-03-07 Thread trlists
On 7 Mar 2005 Jay Blanchard wrote:

 /t and /n do not work for HTML output. If you view the source of your
 HTML output you will see that the tabs and newlines are used properly.
 You will have to substitute an HTML equivalent.

The HTML equivalent would likely be tables -- but if he uses pre then 
the tabs and newlines should work.

For the original poster -- in other words, near the start:

$row = preFilesystem\t . Size\n;

and near the end:

$row .= /pre\n

If you don't mind the monospaced font then that should work -- though 
you are at the mercy of whatever the browser uses for tab spacing.

--
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php