ID:               27549
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to