mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 剔除 新建文档存放位置 参数结尾的 / Fix https://github.com/siyuan-note/siyuan/issues/7315
This commit is contained in:
@@ -168,6 +168,12 @@ func InitConf() {
|
||||
if 32 < Conf.FileTree.MaxOpenTabCount {
|
||||
Conf.FileTree.MaxOpenTabCount = 32
|
||||
}
|
||||
Conf.FileTree.DocCreateSavePath = strings.TrimSpace(Conf.FileTree.DocCreateSavePath)
|
||||
for strings.HasSuffix(Conf.FileTree.DocCreateSavePath, "/") {
|
||||
Conf.FileTree.DocCreateSavePath = strings.TrimSuffix(Conf.FileTree.DocCreateSavePath, "/")
|
||||
Conf.FileTree.DocCreateSavePath = strings.TrimSpace(Conf.FileTree.DocCreateSavePath)
|
||||
}
|
||||
|
||||
if nil == Conf.Tag {
|
||||
Conf.Tag = conf.NewTag()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user