Normalize indentation in templates