From f425480ffddde4623eb175a78203171241052cbc Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 5 Jan 2025 00:32:50 +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 81626a516..28a8dcfaa 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}'))`; + 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}](siyuan://blocks/${id})`; + content = `[${cellElement.querySelector(".av__celltext").textContent.replace(/\n/g, " ")}](siyuan://blocks/${id})`; } if (ids.length > 1) { text += "* ";