run strip() on automatic abilities[description]

bradl/monsters-adult-gold-dragon
James Miller 2020-02-19 23:42:18 -06:00
parent 753386e93d
commit 2135c80654
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ def main():
# clean up traits underneath automatic_abilities with trailing or leading whitespace # clean up traits underneath automatic_abilities with trailing or leading whitespace
for x in i['automatic_abilities']: for x in i['automatic_abilities']:
# this one line fixes leading and trailing whitespace
x['description'] = x['description'].strip()
traitslist = [] traitslist = []
if x['traits'] != None: if x['traits'] != None:
if len(x['traits']) == 0: if len(x['traits']) == 0: