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
1 changed files with 1 additions and 1 deletions

View File

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