From 54ac25cf6de37558d668bf47a192f9f85ad7c2a5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 18 Aug 2022 12:36:24 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/5667 --- app/src/protyle/util/paste.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index c112a9cdd..2d6d26ba7 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -100,6 +100,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven textHTML = ""; } + // 剪切复制中首位包含空格或仅有空格 https://github.com/siyuan-note/siyuan/issues/5667 if (!textHTML.endsWith(Constants.ZWSP) && !textHTML.startsWith(Constants.ZWSP)) { // process word const doc = new DOMParser().parseFromString(textHTML, "text/html");