[PHP-DEV] EOL removed after ?

2011-03-10 Thread Martin Scotta
hi all, pre 1?php ; ?1 22 3?php ; ?3 /pre pre 11?php ; ? 22 33?php ; ? /pre First try works... but second fails output: 1 1 2 2 3 3 1 12 2 3 3 is this the expected behavior? Martin Scotta

Re: [PHP-DEV] EOL removed after ?

2011-03-10 Thread Hannes Landeholm
http://brian.moonspot.net/php-history-newline-closing-tag ~Hannes On 10 March 2011 17:42, Martin Scotta martinsco...@gmail.com wrote: hi all, pre 1    ?php ; ?1 2    2 3    ?php ; ?3 /pre pre 1    1?php ; ? 2    2 3    3?php ; ? /pre First try works... but second fails output:

Re: [PHP-DEV] EOL removed after ?

2011-03-10 Thread Michael Morris
The RFC I just posted also addresses this problem by not requiring all files to have tags at all. On Thu, Mar 10, 2011 at 11:59 AM, Hannes Landeholm landeh...@gmail.comwrote: http://brian.moonspot.net/php-history-newline-closing-tag ~Hannes On 10 March 2011 17:42, Martin Scotta

Re: [PHP-DEV] EOL removed after ?

2011-03-10 Thread Reindl Harald
Am 10.03.2011 19:30, schrieb Martin Scotta: ok, I think I got it. so you think it's safe to include an empty new line after a line that ends with ? ? Martin Scotta It is a bad idea to add anything automatic There are CLI scripts out there runnign as cron-jobs and if you do this on