🎨 Supports multiple views for the database https://github.com/siyuan-note/siyuan/issues/9751

This commit is contained in:
Daniel 2023-12-01 09:05:28 +08:00
parent f9edbe0041
commit 46e566cbfd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -508,6 +508,8 @@ func getAttributeViewContent(avID string) (content string) {
}
buf := bytes.Buffer{}
buf.WriteString(attrView.Name)
buf.WriteByte(' ')
for _, v := range attrView.Views {
buf.WriteString(v.Name)
buf.WriteByte(' ')
@ -526,7 +528,7 @@ func getAttributeViewContent(avID string) (content string) {
}
}
if nil == view {
content = buf.String()
content = strings.TrimSpace(buf.String())
return
}