forked from loafle/openapi-generator-original
Merge pull request #1720 from artem-dudarev/patch-2
[C#] Escape \r in XML comments
This commit is contained in:
@@ -133,6 +133,7 @@ public class DefaultCodegen {
|
||||
if (input != null) {
|
||||
input = input.trim();
|
||||
String output = input.replaceAll("\n", "\\\\n");
|
||||
output = output.replace("\r", "\\r");
|
||||
output = output.replace("\"", "\\\"");
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user