From f4291681f7bf1b074ef1293ffa400c8e680a2ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Fri, 27 Sep 2024 21:23:17 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=92=84=20=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E8=B0=83=E6=95=B4"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3ed8753314696c69c7cdf0da7ade3e07430c573b. --- src/components/post/tp-parser.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/post/tp-parser.vue b/src/components/post/tp-parser.vue index 77707914..4e87b7db 100644 --- a/src/components/post/tp-parser.vue +++ b/src/components/post/tp-parser.vue @@ -42,7 +42,7 @@ function getParsedData(data: TGApp.Plugins.Mys.SctPost.Base[]): TGApp.Plugins.My res.push(cur); continue; } - tp.insert = tp.insert.replace(/\r/g, "\n"); + tp.insert = tp.insert.replace(/\r\n/g, "\n").replace(/\r/g, "\n"); if (tp.insert === "\n") { child.push(tp); cur = {