Explorar el Código

换行有问题 (#218)

吃了会中毒 hace 5 años
padre
commit
203547321c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Tools/Proto2CS/Program.cs

+ 1 - 1
Tools/Proto2CS/Program.cs

@@ -78,7 +78,7 @@ namespace ET
                 
                 if (newline.StartsWith("//ResponseType"))
                 {
-                    string responseType = line.Split(" ")[1];
+                    string responseType = line.Split(" ")[1].TrimEnd('\r', '\n');
                     sb.AppendLine($"\t[ResponseType(typeof({responseType}))]");
                     continue;
                 }