beautify generated code