Re: [SMARTY] unexpected insertion/deletion of spaces in output
| From: | messju mohr | Date: | Fri, 07 Mar 2003 17:28:39 +0000 |
| Subject: | Re: [SMARTY] unexpected insertion/deletion of spaces in output | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8479@lists.php.net to get a copy of this message | ||
On Tue, Mar 04, 2003 at 04:34:18PM -0800, Norman Clarke wrote:
> Hello,
>
> I am new to Smarty and have encountered a problem that I can't find any
> solution to in the documentation.
>
> I am running PHP 4.3 and Smarty 2.4.2 on OS X. In one of my templates I
> have the following code:
>
> Hi, my nickname is {$matches[mysec].nickname|strip}. I'm from
> {$matches[mysec].city|strip|lower|capitalize},
> and I am {$matches[mysec].age} years old.
>
> When I compile and display the page, Smarty inserts spaces after the
> "nickname" and and "city" variables, and deletes the space after the
> "age" variable, so that the output look like this:
>
> Hi, my nickname is joeschmoe . I'm from Seattle , and I am 37years old.
>
> Can anyone tell me if I am doing something wrong here, or if this is
> some kind of bug in Smarty?
i just tested this on macos x with 2.4.2 and 2.5.0-RC1 and it works
great for me. sorry, i don't know, what could be wrong with your
setup.
have fun
messju
> Best regards,
>
> Norman Clarke
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Torx-Schrauben: Hände-Weg-Schrauben
nach Marc Habers Kollegen