From 9687f59322c9bd6c499dbfb4794f6c06ff35cc07 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 31 Mar 2025 15:39:15 +0800 Subject: [PATCH] :art: Trim space in dialynote/block ref/new doc save path https://github.com/siyuan-note/siyuan/issues/14482 --- kernel/model/file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/file.go b/kernel/model/file.go index d1d7f63af..c587b715c 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 }