Re[2]: Incorrect newline counters

From: Date: Sat, 29 May 2004 22:27:34 +0000
Subject: Re[2]: Incorrect newline counters
References: 1 2  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2322@lists.php.net to get a copy of this message
Sorry, here is the better patch (Unix diff instead of Windows). -- Best regards, Dmitry Koteroff. DK> Complex patch attached. I have not tested it completely, but DK> seems everything works fine. DK> I had to change {strip} replacement method - we cannot delete DK> \n's, we must replace it with "<?php\n?>", and this is impossible DK> inside <?...?> blocks. Now {strip} changes only text blocks (not DK> tag compiling results) - DK> if ($this->_strip_depth) { DK> $text_blocks[$i] = preg_replace("![\t ]+$|^[\t ]+!m", '', $text_blocks[$i]); DK> $text_blocks[$i] = preg_replace("/\r?\n/s", DK> "<?php\n?".">", $text_blocks[$i]); DK> }

« previous php.smarty.dev (#2322) next »