From a5af985396f90db4be7b215bf872509e62e7270b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 16 Oct 2022 17:48:52 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/6218 --- app/src/protyle/wysiwyg/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 4dd061c48..fb4db8857 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1093,7 +1093,7 @@ export class WYSIWYG { } } protyle.hint.render(protyle); - event.clipboardData.setData("text/plain", protyle.lute.BlockDOM2StdMd(html)); + event.clipboardData.setData("text/plain", protyle.lute.BlockDOM2StdMd(html).trimEnd()); // 需要 trimEnd,否则 \n 会导致 https://github.com/siyuan-note/siyuan/issues/6218 event.clipboardData.setData("text/html", Constants.ZWSP + html); });