Remove empty lines when file is generated from jinja template