🎨 Supports multiple views for the database https://github.com/siyuan-note/siyuan/issues/9751
This commit is contained in:
parent
f9edbe0041
commit
46e566cbfd
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue