From 82188af739361dad2bc9b52eef50d14f9f443da3 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sun, 19 Jul 2009 14:10:40 +0100 Subject: [PATCH 1/1] deal with multiple answer clues --- curses_crossword.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curses_crossword.py b/curses_crossword.py index 123c3ee..7564376 100755 --- a/curses_crossword.py +++ b/curses_crossword.py @@ -95,14 +95,14 @@ def parsecrossword(crossworddata): if inacross: if line != "": parts = line.split() - question_number = int(parts[0]) + question_number = int(parts[0].split(",")[0]) clue = " ".join(parts[1:]) crossword["across"][int(question_number)] = \ clue.encode(code) if indown: if line != "": parts = line.split() - question_number = int(parts[0]) + question_number = int(parts[0].split(",")[0]) clue = " ".join(parts[1:]) crossword["down"][int(question_number)] = clue.encode(code) num_cols = len(crossword["grid"][0]) -- 2.39.5