Skip to content

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

:art: Trim space in dialynote/block ref/new doc save path https://github.com/siyuan-note/siyuan/issues/14482

Daniel9687f59322c9
diff --git a/kernel/model/file.go b/kernel/model/file.go
index d1d7f63af3..c587b715cf 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -1785,6 +1785,7 @@ func removeInvisibleCharsInTitle(title string) string {
title = strings.ReplaceAll(title, string(gulu.ZWJ), "__@ZWJ@__")
title = util.RemoveInvalid(title)
title = strings.ReplaceAll(title, "__@ZWJ@__", string(gulu.ZWJ))
+ title = strings.TrimSpace(title)
return title
}