Skip to content

Commit b6be19b

Browse files
committed
Merge pull request #582 from guptasu/develop_2.0
Fixed the compile time error in the generated code caused due to unescaped new line characters.
2 parents 64292cd + 80259fb commit b6be19b

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
@@ -406,7 +406,7 @@ public CodegenModel fromModel(String name, Model model) {
406406
m.name = escapeReservedWord(name);
407407
else
408408
m.name = name;
409-
m.description = model.getDescription();
409+
m.description = escapeText(model.getDescription());
410410
m.classname = toModelName(name);
411411
m.classVarName = toVarName(name);
412412
m.modelJson = Json.pretty(model);

0 commit comments

Comments
 (0)