Przeglądaj źródła

换行有问题 (#218)

吃了会中毒 5 lat temu
rodzic
commit
203547321c
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
                 }