This commit is contained in:
Daniel 2024-01-07 15:27:20 +08:00
parent 69f2eeb625
commit e4cee23592
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 0 additions and 16 deletions

View file

@ -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 {