mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
🎨 Improve doc Untitled https://github.com/siyuan-note/siyuan/issues/12622
This commit is contained in:
parent
2e39cb75c5
commit
fb2b9c5319
@ -1770,7 +1770,7 @@ func RenameDoc(boxID, p, title string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if "" == title {
|
if "" == title {
|
||||||
title = Conf.language(105)
|
title = Conf.language(16)
|
||||||
}
|
}
|
||||||
title = strings.ReplaceAll(title, "/", "")
|
title = strings.ReplaceAll(title, "/", "")
|
||||||
|
|
||||||
@ -1808,7 +1808,7 @@ func createDoc(boxID, p, title, dom string) (tree *parse.Tree, err error) {
|
|||||||
title = strings.ReplaceAll(title, "/", "")
|
title = strings.ReplaceAll(title, "/", "")
|
||||||
title = strings.TrimSpace(title)
|
title = strings.TrimSpace(title)
|
||||||
if "" == title {
|
if "" == title {
|
||||||
title = Conf.Language(105)
|
title = Conf.Language(16)
|
||||||
}
|
}
|
||||||
|
|
||||||
baseName := strings.TrimSpace(path.Base(p))
|
baseName := strings.TrimSpace(path.Base(p))
|
||||||
|
@ -812,7 +812,7 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
|
|||||||
|
|
||||||
title := tree.Root.IALAttr("title")
|
title := tree.Root.IALAttr("title")
|
||||||
if "" == title {
|
if "" == title {
|
||||||
title = Conf.language(105)
|
title = Conf.language(16)
|
||||||
}
|
}
|
||||||
content := tree.Root.Content()
|
content := tree.Root.Content()
|
||||||
p := strings.TrimPrefix(doc, util.HistoryDir)
|
p := strings.TrimPrefix(doc, util.HistoryDir)
|
||||||
|
Loading…
Reference in New Issue
Block a user