From 26c0fdcd9302fea58db01651105f70232b148ccb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 5 Jan 2025 09:31:55 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13624 --- app/src/protyle/render/av/action.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index 28a8dcfaa..0091f0b6a 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -344,7 +344,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi if (cellElement.getAttribute("data-detached") === "true") { content = cellElement.querySelector(".av__celltext").textContent; } else { - content = `((${id} '${cellElement.querySelector(".av__celltext").textContent.replace(/\n/g, " ")}'))`; + content = `((${id} '${cellElement.querySelector(".av__celltext").textContent.replace(/[\n]+/g, " ")}'))`; } if (ids.length > 1) { text += "* "; @@ -413,7 +413,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi if (cellElement.getAttribute("data-detached") === "true") { content = cellElement.querySelector(".av__celltext").textContent; } else { - content = `[${cellElement.querySelector(".av__celltext").textContent.replace(/\n/g, " ")}](siyuan://blocks/${id})`; + content = `[${cellElement.querySelector(".av__celltext").textContent.replace(/[\n]+/g, " ")}](siyuan://blocks/${id})`; } if (ids.length > 1) { text += "* ";