remove multiple blank lines from generated code