From cd3b35548f7f4255c383272947df4a21193d7d40 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 31 Mar 2025 21:33:24 +0800 Subject: [PATCH] :art: Trim space in dialynote/block ref/new doc save path https://github.com/siyuan-note/siyuan/issues/14482 --- kernel/model/conf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 192ac61bc..182f87f28 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -215,7 +215,8 @@ func InitConf() { if 32 < Conf.FileTree.MaxOpenTabCount { Conf.FileTree.MaxOpenTabCount = 32 } - Conf.FileTree.DocCreateSavePath = strings.TrimSpace(Conf.FileTree.DocCreateSavePath) + Conf.FileTree.DocCreateSavePath = util.TrimSpaceInPath(Conf.FileTree.DocCreateSavePath) + Conf.FileTree.RefCreateSavePath = util.TrimSpaceInPath(Conf.FileTree.RefCreateSavePath) util.UseSingleLineSave = Conf.FileTree.UseSingleLineSave util.CurrentCloudRegion = Conf.CloudRegion