smarty 'code style' settings for }else{ how to set the indent level?

when i am writing in .php files and do a code reformat it reformats like this:

if($something){
     print 'yes';
}else{
     print 'no';
}

The }else{ statement is inline with the if.  As it should be in my opinion.

But in smarty template files it gets reformatted like this:

{if $something}
     yes
     {else}
     no
{/if}

With the {else} inline with the internals.  Im wanting to format it:

{if $something}
     yes
{else}     
     no
}

Just like php would do it.  how can i get this setup?

2 comments
Comment actions Permalink

I think it's just a formatting bug, please submit a ticket at http://youtrack.jetbrains.com

0

Please sign in to leave a comment.