RE: Problem with Tabs and Newlines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 = "<pre>Filesystem\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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux