fix issue where otf macros aren't shown properly if they're not pluralized

This commit is contained in:
Akbar Rahman 2021-03-19 11:52:48 +00:00
parent a3d80f5703
commit d39a236d2f

View File

@ -139,7 +139,9 @@ def process(input, macros):
value = token
if token.lower() in macros.keys():
value = macros[token.lower()][0]
value = macros[token.lower()]
if isinstance(value, list):
value = value[0]
elif token.lower() in [f"{m}s" for m in macros.keys()]:
value = pluralize(macros[token.lower()[:-1]])