1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 10:12:19 -05:00

Allow dependencies to be missing from metadata

xep2md leaves it out if there are zero dependencies in the input, so
seems sensible to mirror that in the opposite direction
This commit is contained in:
Kim Alvefur 2021-03-02 17:58:52 +01:00
parent 784177b64f
commit e7625fa93b

View File

@ -69,7 +69,7 @@ function Doc(body, metadata, variables)
if field == "legal" then
add("&LEGALNOTICE;");
goto next;
elseif field == "supersedes" or field == "supersededby" then
elseif field == "supersedes" or field == "supersededby" or field == "dependencies" then
add(("<%s/>"):format(field));
goto next;
elseif r ~= "*" and r ~= "?" then