From 4d0442a0f0a8ba27bf56846caaf01b7b776fcfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Tue, 3 Sep 2024 11:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D\r=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E5=88=86=E5=89=B2=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/post/tp-parser.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/post/tp-parser.vue b/src/components/post/tp-parser.vue index 646c11ba..3ed99595 100644 --- a/src/components/post/tp-parser.vue +++ b/src/components/post/tp-parser.vue @@ -42,6 +42,7 @@ function getParsedData(data: TGApp.Plugins.Mys.SctPost.Base[]): TGApp.Plugins.My res.push(cur); continue; } + tp.insert = tp.insert.replace(/\r\n/g, "\n").replace(/\r/g, "\n"); if (tp.insert === "\n") { child.push(tp); cur = {