mirror of
https://github.com/appdev/siyuan-unlock.git
synced 2026-03-09 18:27:57 +08:00
🐛 剔除 新建文档存放位置 参数结尾的 / Fix https://github.com/siyuan-note/siyuan/issues/7315
This commit is contained in:
parent
3f0dd873fb
commit
95cf1d8a00
@ -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()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user