unexpected insertion/deletion of spaces in output

From: Date: Wed, 05 Mar 2003 00:34:18 +0000
Subject: unexpected insertion/deletion of spaces in output
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8407@lists.php.net to get a copy of this message
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? Best regards, Norman Clarke

« previous php.smarty.general (#8407) next »