#27549 [Opn->Bgs]: Removing whitespace after closing tag should be optional

From: Date: Wed, 10 Mar 2004 14:26:44 +0000
Subject: #27549 [Opn->Bgs]: Removing whitespace after closing tag should be optional
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56236@lists.php.net to get a copy of this message
ID: 27549 Updated by: derick@php.net Reported By: zizka at seznam dot cz -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: All PHP Version: 4.3.4 New Comment: Already filed, and already declined. Previous Comments: ------------------------------------------------------------------------ [2004-03-10 09:19:29] zizka at seznam dot cz Description: ------------ Removing whitespace after closing tag is quite annoying and should be optional. Every webmaster looks into the page code to see what's the problem, and when he drops out of PHP parsing mode with ?> instead of echo()ing, the resulting code is quite awful: <table> <? while(list(,$val)=each($a)){?> <tr><td><?=$val['caption']?></td> <td><?=$val['text']?></td> </tr><?}?> </table> Without this feature, the output would be like this: <table> <tr><td>About PHP</td> <td>PHP's quite good thing, but still can be better</td> </tr> <tr><td>About PHP</td> <td>PHP's quite good thing, but still can be better</td> </tr> </table> But, because of it, instead of such nice code we get: <table> <tr><td>About PHP</td> <td>PHP's quite good thing, but still can be better</td> </tr> <tr><td>About PHP</td> <td>PHP's quite good thing, but still can be better</td> </tr></table> I could come up with better examples, but they would be too complex. But believe me, sometimes I get a line > 2000 characters long! (And adding echo "\n"; is out of question.) Thx ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27549&edit=1

« previous php.bugs (#56236) next »