Changeset 24877


Ignore:
Timestamp:
Oct 12, 2013, 1:14:07 PM (7 years ago)
Author:
mistic100
Message:

2816: {strip} removes too much things, fixed again for smarty 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/smarty/libs/sysplugins/smarty_internal_templateparser.php

    r23485 r24877  
    22732273    function yy_r11(){
    22742274    if ($this->strip) {
    2275         $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)));
     2275        $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', ' ', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)));
    22762276    } else {
    22772277        $this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor));
     
    22912291    function yy_r13(){
    22922292    if ($this->strip) {
    2293         $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor));
     2293        $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', ' ', $this->yystack[$this->yyidx + 0]->minor));
    22942294    } else {
    22952295        $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
Note: See TracChangeset for help on using the changeset viewer.