Avoid empty lines in template