Extra newlines at the end of generated code