RE: [SMARTY-DEV] Newlines

From: Date: Mon, 01 Apr 2002 15:09:38 +0000
Subject: RE: [SMARTY-DEV] Newlines
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-5@lists.php.net to get a copy of this message
have just upgraded from 2.0 to 2.0.1 same problem could it be strip or anything causing it? I noticed in the compiled template it goes like this <php echo $var// note simplification ?> text and I know that php strips the first newline after the ending tag If it was made like this <php echo $var// note simplification ?> text or <php echo $var// note simplification ?> text // note extra newline the space will be there, but of course that's not the case with smarty that I observed... > -----Original Message----- > From: Monte Ohrt [mailto:monte@ispi.net] > > Jimmy Harlindong wrote: > > When I have $var = "abc" and inside the template: {$var} text > > the output will be "abctext" > > This shouldn't happen, the space should be there as you would intend. > What version of Smarty are you using? I just did a simple test and it > looks OK to me.

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