Re: [PHPTAL] Re: PHP newline consumption
On 10-12-2009 at 17:59:22 Richard Cernava wrote: People, please! Stop wasting your time with PHPTAL and plaintext! It's deliberately *not* supported. http://phptal.org/wiki/doku.php/plaintext This is not a PHPTal issue per say, more than a PHP new line consumption issue, but PHPTal does have to deal with it. This has adverse affects on pre formatted text. I've fixed newline consumption issue. However still I advise against using PHPTAL for plaintext. For example text in will have & interpreted properly, but it won't make sense in e-mail. -- regards, Kornel ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal
Re: [PHPTAL] Re: PHP newline consumption
On 10-12-2009 at 17:19:50 Richard Cernava wrote: I much agree, I don't like it either. ${variable1 | string:Line 1} Line 3 Renders: Line 1 Line 2 Line 3 TAL block seems to add another line break after Line 2, but variable does not. Ok, this is fixed in SVN. -- regards, Kornel ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal
Re: [PHPTAL] Re: PHP newline consumption
On 09-12-2009 at 23:06:40 Richard Cernava 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 ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal