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:
parent
d562d815b5
commit
3dc3253a38
@ -343,9 +343,6 @@ events.add_handler("header/", function (event)
|
|||||||
if meta.title and meta.number then
|
if meta.title and meta.number then
|
||||||
meta.title = "XEP-"..meta.number..": "..meta.title;
|
meta.title = "XEP-"..meta.number..": "..meta.title;
|
||||||
end
|
end
|
||||||
if meta.author and #meta.author == 1 then
|
|
||||||
meta.author = meta.author[1];
|
|
||||||
end
|
|
||||||
local have_yaml, yaml = pcall(require, "lyaml");
|
local have_yaml, yaml = pcall(require, "lyaml");
|
||||||
if have_yaml and yaml.dump then
|
if have_yaml and yaml.dump then
|
||||||
output(yaml.dump({meta}));
|
output(yaml.dump({meta}));
|
||||||
|
Loading…
Reference in New Issue
Block a user