Date: 08/30/99
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #2194 Updated: newline character ( \n ) ignored/treated as a single space"
- Previous message: Bug Database: "[PHP-DEV] Bug #2161 Updated: wddx deserializes crashes httpd"
- In reply to: jkjome <email protected>: "[PHP-DEV] PHP 4.0 Bug #2194: newline character ( \n ) ignored/treated as a single space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You are outputting HTML. new lines are eaten up in HTML.
the proper HTML tag to make a newline is <br>.
MArk
>
> From: jkjome <email protected>
> Operating system: NT4
> PHP version: 4.0 Beta 2
> PHP Bug Type: Other
> Bug description: newline character ( \n ) ignored/treated as a single space
>
> Here is an example:
>
> <?php for ($i = 4; $i < 8; $i++) {
> print "I have eaten $i bagels today.\n";}
> ?>
>
> Even with the newline character there, no new line is generated in the output. As you can see, this happens with print, but it also happens with printf and echo.
>
> The only thing it does is add a single space where it should have been a new-line.
>
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #2194 Updated: newline character ( \n ) ignored/treated as a single space"
- Previous message: Bug Database: "[PHP-DEV] Bug #2161 Updated: wddx deserializes crashes httpd"
- In reply to: jkjome <email protected>: "[PHP-DEV] PHP 4.0 Bug #2194: newline character ( \n ) ignored/treated as a single space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

