Strip whitespace from trivia answers

This commit is contained in:
Twentysix 2016-03-06 05:20:20 +01:00
parent f17f5390d4
commit d935cd0c35

View File

@ -115,7 +115,7 @@ class TriviaSession():
question = line[0]
answers = []
for l in line[1:]:
answers.append(l.lower())
answers.append(l.lower().strip())
if len(line) >= 2:
line = {"QUESTION" : question, "ANSWERS": answers} #string, list
parsed_list.append(line)