Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14770

Vanessa31dcead35f9e
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 472f9f2f51..22743c387c 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -635,6 +635,12 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
const avId = blockElement.getAttribute("data-av-id");
const id = blockElement.getAttribute("data-node-id");
const nameElement = blockElement.querySelector(".av__title") as HTMLElement;
+ // https://github.com/siyuan-note/siyuan/issues/14770
+ if (nameElement.textContent === "") {
+ nameElement.querySelectorAll("br").forEach(item => {
+ item.remove();
+ });
+ }
const newData = nameElement.textContent.trim();
if (newData === nameElement.dataset.title.trim()) {
return;