Found this old issue in Bugzilla.
I've hit this problem too with my users, in which they want to put text right
after an else but can't.
I've come up with a patch to fix this bug? (feature?) After applying the
patch, ant test works, as does the example above.
One small compatibility issue: you can no longer create a custom directive
that starts with #else. (e.g. #elseorwhat). I consider this a fairly small
issues as perhaps 1% of Velocity developers make custom directives, and I
suspect less than 1% of those would start a directive with #else. (Note that
the built in directive #elseif still works).