From 735acfb0d138f0724caeceb62b27168a5fbb628a Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 24 Feb 2020 17:00:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=82=AE=E4=BB=B6=E6=AD=A3?= =?UTF-8?q?=E6=96=87=E4=B8=BA=20HTML=20=E6=9B=B4=E6=94=B9=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E7=AC=A6=E4=B8=BA=20br?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/Bootstrap.Client/Extensions/SmtpExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/Bootstrap.Client/Extensions/SmtpExtensions.cs b/src/client/Bootstrap.Client/Extensions/SmtpExtensions.cs index a5617602..8355776e 100644 --- a/src/client/Bootstrap.Client/Extensions/SmtpExtensions.cs +++ b/src/client/Bootstrap.Client/Extensions/SmtpExtensions.cs @@ -67,7 +67,7 @@ namespace Bootstrap.Client.Extensions var rowData = new StringBuilder(); foreach (var row in data.GetProperty("Data").EnumerateObject()) { - rowData.AppendFormat(trTemplate, row.Name, row.Value.GetRawText().Replace("\\r\\n", "
").Replace("\\n", "
")); + rowData.AppendFormat(trTemplate, row.Name, row.Value.GetRawText()); } sb.Append(string.Format(itemTemplate, cate[itemName], data.GetProperty("Duration").GetString(), state[data.GetProperty("Status").GetRawText()], rowData.ToString())); } @@ -209,7 +209,7 @@ namespace Bootstrap.Client.Extensions } // 合并消息 - content.AppendLine(msg.Message); + content.AppendLine(msg.Message.Replace("\\r\\n", "
").Replace("\\n", "
")); } if (sender != null && mail != null) {