Prevent rendering of empty lines in template.