diff --git a/data/yaml/clean-up-monsters.py b/data/yaml/clean-up-monsters.py index ac05dc2..1dafecb 100644 --- a/data/yaml/clean-up-monsters.py +++ b/data/yaml/clean-up-monsters.py @@ -82,6 +82,8 @@ def main(): # clean up traits underneath automatic_abilities with trailing or leading whitespace for x in i['automatic_abilities']: + # this one line fixes leading and trailing whitespace + x['description'] = x['description'].strip() traitslist = [] if x['traits'] != None: if len(x['traits']) == 0: