Re: [SMARTY] strip "bug" ?
| From: | Jan Rosier | Date: | Tue, 13 May 2003 10:10:27 +0000 |
| Subject: | Re: [SMARTY] strip "bug" ? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9543@lists.php.net to get a copy of this message | ||
Hello,
If the cvs version not works for you.
Try this:
take version 2.5.0 of Smarty
open the file Smarty_Compiler.class.php
goto line 396: return "<?php echo $_return; ?>\n";
change it to: return "<?php echo $_return; ?>";
Greetings,
Jan Rosier
* John Bender: But face it. You're a neo maxi zoom dweebie, what would you
be doing if you weren't out making yourself a better citizen? *
----- Original Message -----
From: "messju mohr" <messju@lammfellpuschen.de>
To: "Greg Stark" <gsstark@mit.edu>
Cc: <smarty-general@lists.php.net>
Sent: Monday, May 12, 2003 11:21 PM
Subject: Re: [SMARTY] strip "bug" ?
> On Mon, May 12, 2003 at 04:19:52PM -0400, Greg Stark wrote:
> >
> > Strip seems to remove more spaces than really necessary. Specifically it
> > removes spaces within a line around {} variables. This makes it hard to
do
> > something like this:
> >
> > {strip}
> > <a href="foo...">
> > Hello {$user}, there are {$bar} things in your shopping cart.
> > </a>
> > {/strip}
> >
> > Which will print:
> >
> > Hello Bill, there are 0things in your shopping cart.
>
> this seems to be fixed in cvs. give it a try if you want, although
> there is other stuff in the cvs-version right now that is a bit
> ...um... unstable.
>
> > I don't really feel like putting an after every thing like this.
In any
> > case it doesn't match the documentation of {strip} which says it only
removes
> > newlines and indentation.
> >
> > --
> > greg
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>