mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-18 05:59:24 +00:00
fix for #577, added newline replacement
This commit is contained in:
@@ -65,7 +65,7 @@ public class DefaultCodegen {
|
||||
// override with any special text escaping logic
|
||||
public String escapeText(String input) {
|
||||
if(input != null) {
|
||||
String output = input.replaceAll("\n", " ");
|
||||
String output = input.replaceAll("\n", "\\\\n");
|
||||
output = output.replace("\"", "\\\"");
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user