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

Danielcd3b35548f7f
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 192ac61bc2..182f87f288 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