fixes formatting of generated code