mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve New document save location https://github.com/siyuan-note/siyuan/issues/10094
This commit is contained in:
parent
69f2eeb625
commit
e4cee23592
4 changed files with 0 additions and 16 deletions
|
|
@ -612,10 +612,6 @@ func getDocCreateSavePath(c *gin.Context) {
|
|||
if "../" == docCreateSavePathTpl {
|
||||
docCreateSavePathTpl = "../Untitled"
|
||||
}
|
||||
for strings.HasSuffix(docCreateSavePathTpl, "/") {
|
||||
docCreateSavePathTpl = strings.TrimSuffix(docCreateSavePathTpl, "/")
|
||||
docCreateSavePathTpl = strings.TrimSpace(docCreateSavePathTpl)
|
||||
}
|
||||
|
||||
p, err := model.RenderGoTemplate(docCreateSavePathTpl)
|
||||
if nil != err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue