Just out of curiosity, why does this bother you? In (x)html newlines are at best considered one white-space. Are you using this inside <pre> ?
On 12/10/09, Richard Cernava <cern...@gmail.com> wrote: > >> > >> > A "feature" of PHP's is to consume a newline when it is following >> > it's closing >> > tag (http://bugs.php.net/bug.php?id=28381). The reason I bring this >> > up is >> > because this issue affects PHPTAL's output. Take for example: >> > <tal:block tal:condition="true">I'm on a line</tal:block> >> > <tal:block tal:condition="true">I'm on a line</tal:block> >> >> Thanks. This should be fixed in SVN. > > I hate to bring this back up, but this does not seem to be fixed. I'm > running > PHPTal 1.2.2a1. > > inside function prepare() I added the preg_replace underneath $result = > $this->parse(); to fix it for now. > > $result = preg_replace('/\?>\r?\n/', "?>\r\n\r\n", $result); > > > > > _______________________________________________ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > -- -- Tjerk _______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal