1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-22 15:48:52 -05:00

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

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