mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-25 11:00:13 +01:00
🐛 剔除 新建文档存放位置 参数结尾的 / Fix https://github.com/siyuan-note/siyuan/issues/7315
This commit is contained in:
parent
3f0dd873fb
commit
95cf1d8a00
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue