1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 16:55:07 -05:00

xep2md: Always serialize authors as list

Needed to roundtrip through 2xep.lua
This commit is contained in:
Kim Alvefur 2021-02-26 12:35:25 +01:00
parent d562d815b5
commit 3dc3253a38

View File

@ -343,9 +343,6 @@ events.add_handler("header/", function (event)
if meta.title and meta.number then
meta.title = "XEP-"..meta.number..": "..meta.title;
end
if meta.author and #meta.author == 1 then
meta.author = meta.author[1];
end
local have_yaml, yaml = pcall(require, "lyaml");
if have_yaml and yaml.dump then
output(yaml.dump({meta}));