From d935cd0c358a3e33057c0c5ff9151f095c73b9f4 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sun, 6 Mar 2016 05:20:20 +0100 Subject: [PATCH] Strip whitespace from trivia answers --- cogs/trivia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/trivia.py b/cogs/trivia.py index a8c4fcbfc..1d58c5120 100644 --- a/cogs/trivia.py +++ b/cogs/trivia.py @@ -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)