tools/2xep: Fix encoding of simple list metadata

An extra wrapper element was added

```
<lastcall>
<lastcall>2017-11-15</lastcall>
</lastcall>
```

Correct is one element with text for each item

```
<lastcall>2017-11-15</lastcall>
```
This commit is contained in:
Kim Alvefur 2022-12-27 17:27:08 +01:00
parent 29809ef1b5
commit 5a55805a67
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ function Doc(body, metadata, variables)
end
add("</remark>");
else
add(("<%s>%s</%s>"):format(field, tostring(sv), field));
add(tostring(sv));
end
add(string.format("</%s>", field));
end