parser/metadecoders: Accumulate org keywords into arrays

Closes #11743
This commit is contained in:
August Feng 2023-11-25 22:33:02 -05:00 committed by Bjørn Erik Pedersen
parent 8915343075
commit 46f618756f
3 changed files with 4 additions and 4 deletions

View file

@ -125,6 +125,7 @@ func TestUnmarshalToInterface(t *testing.T) {
{[]byte(``), JSON, map[string]any{}},
{[]byte(nil), JSON, map[string]any{}},
{[]byte(`#+a: b`), ORG, expect},
{[]byte("#+a: foo bar\n#+a: baz"), ORG, map[string]any{"a": []string{string("foo bar"), string("baz")}}},
{[]byte(`#+DATE: <2020-06-26 Fri>`), ORG, map[string]any{"date": "2020-06-26"}},
{[]byte(`#+LASTMOD: <2020-06-26 Fri>`), ORG, map[string]any{"lastmod": "2020-06-26"}},
{[]byte(`#+PUBLISHDATE: <2020-06-26 Fri>`), ORG, map[string]any{"publishdate": "2020-06-26"}},