Hi Tim, Tim Cook wrote:
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!
Hehe ;) I'm currently playing with a clean-up tag, to remove whitespaces/empty lines in code. May be I release it, if its fully done. Stay tuned ;-) Regards Tino