mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +01:00
🎨 Limit the database title to 512 characters https://github.com/siyuan-note/siyuan/issues/15459
This commit is contained in:
parent
014ecca54c
commit
202ccfa5cf
1 changed files with 1 additions and 4 deletions
|
|
@ -101,10 +101,7 @@ func checkAttrView(attrView *av.AttributeView, view *av.View) {
|
|||
}
|
||||
}
|
||||
|
||||
if strings.Contains(attrView.Name, "\n") {
|
||||
attrView.Name = strings.ReplaceAll(attrView.Name, "\n", " ")
|
||||
}
|
||||
|
||||
attrView.Name = strings.ReplaceAll(attrView.Name, "\n", " ")
|
||||
// 截断超长的数据库标题 Limit the database title to 512 characters https://github.com/siyuan-note/siyuan/issues/15459
|
||||
if 512 < utf8.RuneCountInString(attrView.Name) {
|
||||
attrView.Name = gulu.Str.SubStr(attrView.Name, 512)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue