Yeah i know, looks like i skipped a line when i copied the code snip.
As for better information, i do not have any more information, because the system provider for this system will not let me see more of the codes.
So this is what i have to work with. Going to insert a drop-out menu, and for this i need <ul> to be printet correctly.
{foreach $categories_array as $category}
{if $category.spacing == '1'}
<li class="cat1 {$class}" style="margin-left:10px;"><a href="{$category.href}">{$category.name}</a></li>
{elseif $category.spacing == '2'}
<li class="cat2 {$class}" style="margin-left:{0+$category.spacing*10}px;" ><a href="{$category.href}">{$category.name}</a></li>
{else}
<li class="cat0-sub {$class}" style="margin-left:{0+$category.spacing*10}px;" ><a href="{$category.href}">{$category.name}</a></li>
{/if}
{/foreach}