From 90044e1f26a05d4ec94c738db4d47b9046700804 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 2 Mar 2023 14:48:32 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=8C=81=E4=B9=85=E5=8C=96=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E8=A7=86=E5=9B=BE=20https://github.com/siyuan-note/si?= =?UTF-8?q?yuan/issues/2829?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/attribute_view.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index bf9e2ccf1..115f4bf91 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -46,10 +46,11 @@ func AddBlockToAttributeView(blockID, avID string) (err error) { return } - attrs := parse.IAL2Map(node.KramdownIAL) var row []av.Cell row = append(row, av.NewCellBlock(block.ID)) if 1 < len(attrView.Columns) { + attrs := parse.IAL2Map(node.KramdownIAL) + for _, col := range attrView.Columns[1:] { colName := col.Name() attrs[colName] = ""