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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stefan Weiss

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

    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
Working...