By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,631 Members | 1,576 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,631 IT Pros & Developers. It's quick & easy.

Newline after <?..?> block behaviour configurable?

P: n/a
Hi.

I find it increasingly annoying that newlines after blocks of PHP
code are automatically stripped. I know that this is documented, and
may even be construed as a feature by some, but for me it's more a
nuisance than a help. I have found a couple of bug reports regarding
this problem, but no solution.

Consider this case:

<pre>
Your current settings:
setting1 = <? echo $setting1 ?>
setting2 = <? echo $setting2 ?>
<pre>

This will result in:

<pre>
Your current settings:
setting1 = 42setting2 = 23</pre>

I know that there are several ways to avoid this, but I'm looking for
a way to disable this behaviour permanently. Is there a configuration
option to handle it in v4.3.1? Any hope for future versions? Hacking
the source is not an option, since other scripts might depend on this
"feature".
TIA,
stefan
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.