Daniel Kurecka - 2012-07-04

Example above actually works, but the problem appears when before <#= selection #> is newline and tab/space.

Correct example (replace \t with actual tab character and try this template on multiline selection):

if ($1) {
\t<#= selection #>$end
}

I figure out that the problem is causing function "_indent" in ".jedit\SuperAbbrevs\template_generation_functions.bsh". Particularly the problem in this function is in the "indent" variable that returning "void". Workaround is to remove this variable, but than obviously abbrevs used on indented text will not be indented correctly.