Skip to content

Commit 610143f

Browse files
committed
fix for #577, added newline replacement
1 parent 2cc9b10 commit 610143f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void processSwagger(Swagger swagger) {}
6565
// override with any special text escaping logic
6666
public String escapeText(String input) {
6767
if(input != null) {
68-
String output = input.replaceAll("\n", " ");
68+
String output = input.replaceAll("\n", "\\\\n");
6969
output = output.replace("\"", "\\\"");
7070
return output;
7171
}

0 commit comments

Comments
 (0)