Enhanced behaviour on templates (avoid leading empty lines)