code indentation/formatting
Brought to you by:
tjuerge
I second that request to indent velocity templates.
We have a lot of templates which are sometimes indented with spaces and other times with tabs, it would be nice if the engine would be able to remove all spaces and convert them to tabs, or convert tabs to spaces and indent things taking velocity conditional statements into account ...
eg.
...
<p>text</p>
#if ($true)
$text1
#else
$text2
#end
It doesn't look like this is going to happen anytime soon so I'll look into the code haven't contributed to any open source before, I'll commit if I am successful, don't count on it though.
Logged In: NO
sorry, the indentation in the example doesn't show up properly but it should be something like:
eg.
...
\t<p>text</p>
\t#if ($true)
\t\t$text1
\t#else
\t\t$text2
\t#end
or spaces if that's selected ...