Preserving indentation in a custom kdevelop file template

I’ve created a file template, I’m having the issue that for some reason kdevelop removes empty lines from the template and randomly moves some curly braces to a new line.

Is there a way of telling kdevelop to keep the template as is and just perform variable substitution?