diff --git a/scripts/playbtw_core.py b/scripts/playbtw_core.py index 25dc34b..11241fa 100644 --- a/scripts/playbtw_core.py +++ b/scripts/playbtw_core.py @@ -23,13 +23,13 @@ tables = map(str.strip, args['table'].split(',')) result = [] for t in tables: - result.append(choice_table(t)) + result.append(choice_table(t.strip())) print(' '.join(result)) elif action == 'wtable': tables = map(str.strip, args['table'].split(',')) result = [] for t in tables: - result.append(choice_wtable(t)) + result.append(choice_wtable(t.strip())) print(' '.join(result)) elif action == 'roll_dice': result = roll_dice(args['quantity'], args['size'])