question: Add support for list-of-lines prompts
authorW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 17:47:06 +0000 (12:47 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 17:59:06 +0000 (12:59 -0500)
commitc8eb37b15233bec1d33b927880cdbdae3f5001ec
tree91cfb484f2a4c23853a9906f9ba55b65b6d82124
parent6fe26db7aee963bee5120419d28b5c5972dd0470
question: Add support for list-of-lines prompts

We use lists of lines for other question attributes (e.g. setup,
teardown, answer).  Be consistent with multi-line prompts.

The handling is in Question.format_prompt() for easy access by any
consumer.  The `newline` option will make it easy to support
non-terminal output formats (e.g. `newline='<br/>'` for HTML).
quizzer/cli.py
quizzer/question.py
quizzer/ui/cli.py