ID: 20556 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Output Control Operating System: FreeBSD 4.2-REL PHP Version: 4.2.2 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2002-11-21 20:15:52] [EMAIL PROTECTED] This problem never shows up when using PHP to output HTML since it ignores newlines... but if you're outputting straight text it's a huge hassle. Any block of php code placed at the end of a line (adjacent to a newline character) will "eat" that newline character. Example: ********10<? ?> ********20 Give it a try, it outputs: ********10********20 No matter what is present in the php block this happens. If there is a character directly following the block it will not get eaten: ********10<? ?>C ********20 Produces: ********10C ********20 This is a big annoyance for me, as I'm using PHP to generate text (as well as html) emails using templates. I'm thinking the parser is just running off the end of the line looking for another php block, but it never bothers to put the newline back when it's done. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20556&edit=1
