Re: [SMARTY] Cycle in bgcolor issue and workaround
| From: | Jason Sweat | Date: | Wed, 08 May 2002 12:44:26 +0000 |
| Subject: | Re: [SMARTY] Cycle in bgcolor issue and workaround | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4078@lists.php.net to get a copy of this message | ||
{cycle values="foo,bar"}
{cycle}
{cycle}
<p>
{cycle}<br>
{cycle}<br>
{cycle}<br>
<!-- test="{cycle}" -->
now produces:
foobarfoo<p>
bar<br>
foo<br>
bar<br>
<!-- test="foo" -->
Which I think is the better of the two options.
Thanks.
Jason
--- Monte Ohrt <monte@ispi.net> wrote:
> The \n has been removed from CVS, give it a try.
>
> Jason Sweat wrote:
> > I am using the cycle in Smarty 2.1.1
> >
> > When I specify
> > <tr bgcolor="{cycle values="white,white,silver"}">
> >
> > the output looks like:
> > <tr bgcolor="white
> > ">
> >
> > and renders funny in IE5.5 (completely different
> > colors for some reason.
> >
> > By doing
> > {cycle values="white,white,silver"
> assign="bgcolor"
> > print="false"}
> > <tr bgcolor="{$bgcolor}">
> >
> > I get the expected result. I even tried {strip}
> > around the <tr> and it still had the spaces and a
> new
> > line. Any way to remove the spaces and the new
> line
> > from the output?
> >
> > Thanks.
> >
> > Jason
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Health - your guide to health and wellness
> > http://health.yahoo.com
> >
>
>
>
> --
> Monte Ohrt <monte@ispi.net>
> Director of Technology, ispi Inc.
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com