Re: [SMARTY-DEV] trimwhitespace outputfilter bug
| From: | messju mohr | Date: | Sun, 09 Mar 2003 07:18:07 +0000 |
| Subject: | Re: [SMARTY-DEV] trimwhitespace outputfilter bug | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-924@lists.php.net to get a copy of this message | ||
On Sat, Mar 08, 2003 at 08:18:41PM -0800, Steve wrote:
> this is a good one:)
>
> pseudo code/explanation:
> .php file:
> $var = "$59.95 blah blah"
you mean $tmpl->assign('var', "$59.95 blah blah");
> $tmpl->load_filter('output', 'trimwhitespace');
>
> in template:
> {$var}<br>
> <textarea>{$var}</textarea>
>
> output:
> $59.95 blah blah<br>
> <textarea>.95 blah blah</textarea>
>
> I looked at the regex, I'm lost. It's ripping away the $59. Can someone
> fix this? The filter is great, but not when it breaks the content :)
it works fine for me with 2.4.2 and 2.5.0-RC1.
> Thanks so much,
>
> Steve