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.
This commit is contained in:
Tony Tam 2015-04-01 20:58:01 -07:00
commit b6be19b266

View File

@ -406,7 +406,7 @@ public class DefaultCodegen {
m.name = escapeReservedWord(name);
else
m.name = name;
m.description = model.getDescription();
m.description = escapeText(model.getDescription());
m.classname = toModelName(name);
m.classVarName = toVarName(name);
m.modelJson = Json.pretty(model);