Fix command response new line

This commit is contained in:
2023-10-18 22:05:51 +08:00
parent f553ddddd8
commit 0788a32158

View File

@ -617,7 +617,7 @@ namespace GrasscutterTools.Forms
{ {
Logger.I(TAG, "RunCommand:" + cmd); Logger.I(TAG, "RunCommand:" + cmd);
var msg = await Common.OC.Invoke(cmd); var msg = await Common.OC.Invoke(cmd);
TxtCommandRunLog.AppendText(string.IsNullOrEmpty(msg) ? "OK" : msg); TxtCommandRunLog.AppendText(string.IsNullOrEmpty(msg) ? "OK" : msg.Replace("\n", "\r\n"));
TxtCommandRunLog.AppendText(Environment.NewLine); TxtCommandRunLog.AppendText(Environment.NewLine);
} }
catch (Exception ex) catch (Exception ex)