[Zope] Whitespace in lines property

Tim Cook twcook@iswt.com
Thu, 07 Sep 2000 00:39:06 -0500


Tino Wildenhain wrote:
> 
> Hi Tim,
> 
> Tim Cook wrote:
> >
> > Can anyone tell me why when I edit a lines property I get leading
> > whitespace inserted?
> > The first line gets seven & each one after that gets 10 spaces.
> >
> > I tried stripping it out but this didn't seem to have any effect.
> >
> > ...
> >
> > <textarea name="alt_names:lines" rows="10" cols="50" >
> > <dtml-in alt_names>
> >   <dtml-let cur_item=sequence-item>
>  ^^^ here                            ^here
> >     <dtml-var "_.string.strip(cur_item)">
>  ^^^^^ here                                ^here
> >   </dtml-let>
>  ^^^here       ^ here
> 
> > </dtml-in>
> > </textarea>
> >
>  here marks your whitespaces.
> 
> try:
> 
> <textarea name="alt_names:lines" rows="10" cols="50" >
> <dtml-in alt_names><dtml-let cur_item=sequence-item><dtml-var
> "_.string.strip(cur_item)">
> </dtml-let></dtml-in></textarea>
> 
> Ugly code, but...
> 

Well, "realize something NEW everyday!" 
It never crossed my mind that the space between my code elements
would be rendered. DUH!

Thanks,
-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org