Re[2]: Incorrect newline counters

Dmitry Koteroff <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
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> }

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.