From: Brett Parker Date: Sun, 19 Jul 2009 13:10:40 +0000 (+0100) Subject: deal with multiple answer clues X-Git-Url: https://git.sommitrealweird.co.uk/curses-crossword.git/commitdiff_plain/82188af739361dad2bc9b52eef50d14f9f443da3 deal with multiple answer clues --- 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])