mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Trim space in dialynote/block ref/new doc save path https://github.com/siyuan-note/siyuan/issues/14482
This commit is contained in:
parent
54c25af19f
commit
4c080e2b34
3 changed files with 15 additions and 6 deletions
|
|
@ -399,14 +399,14 @@ func setFiletree(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
fileTree.RefCreateSavePath = strings.TrimSpace(fileTree.RefCreateSavePath)
|
||||
fileTree.RefCreateSavePath = util.TrimSpaceInPath(fileTree.RefCreateSavePath)
|
||||
if "" != fileTree.RefCreateSavePath {
|
||||
if !strings.HasSuffix(fileTree.RefCreateSavePath, "/") {
|
||||
fileTree.RefCreateSavePath += "/"
|
||||
}
|
||||
}
|
||||
|
||||
fileTree.DocCreateSavePath = strings.TrimSpace(fileTree.DocCreateSavePath)
|
||||
fileTree.DocCreateSavePath = util.TrimSpaceInPath(fileTree.DocCreateSavePath)
|
||||
|
||||
if 1 > fileTree.MaxOpenTabCount {
|
||||
fileTree.MaxOpenTabCount = 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue