[PHPTAL] Re: PHP newline consumption

Kornel Lesiński kornel at aardvarkmedia.co.uk
Thu Dec 10 10:46:18 CET 2009


On 09-12-2009 at 23:06:40 Richard Cernava <cernava at gmail.com> wrote:

> 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);

Can you send me example template that exposes the problem?

I'd rather not fix it by find'n'replace, as it could change other XML  
processing instructions, markup in CDATA etc.

-- 
regards, Kornel



More information about the PHPTAL mailing list