Re: Smarty 1.3.0 now available!
| From: | Monte Ohrt | Date: | Wed, 21 Feb 2001 23:10:02 +0000 |
| Subject: | Re: Smarty 1.3.0 now available! | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-182@lists.php.net to get a copy of this message | ||
Maciek Uhlig wrote:
>
> At a first glance: test index.php:
>
> - test: my interests are: john doe is shifted left relative to other three
> persons
Ok this isn't really a bug, I just have the example not quite formatted
correct. I have something like this:
<PRE>
{section name=outer loop=$FirstName}
{if %outer.index% is odd by 2}
{%outer.rownum%} . {$outer/FirstName} {$outer/LastName}
{else}
{%outer.rownum%} * {$outer/FirstName} {$outer/LastName}
{/if}
{sectionelse}
none
{/section}
</PRE>
As you can see, there are spaces to the left of the {if} tags which get
into the content, and the <PRE> tags preserve that in the formatting.
I'll change the example template to work correctly.
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/