RE: [SMARTY-DEV] Newlines
| From: | Jimmy Harlindong | Date: | Tue, 02 Apr 2002 14:04:00 +0000 |
| Subject: | RE: [SMARTY-DEV] Newlines | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-7@lists.php.net to get a copy of this message | ||
Monte,
Do you know why?
> -----Original Message-----
> From: Jimmy Harlindong [mailto:jimmy@harlindong.com]
> Sent: Tuesday, 2 April 2002 1:10 AM
> To: smarty-dev@lists.php.net
> Subject: RE: [SMARTY-DEV] Newlines
>
>
> 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.
>
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>