Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] form_multiple_choice does not split by lines

edited February 2013 in OpenSesame

Hi Sebastiaan,

In the form_multiple_choice, it states that different response options can be entered on separate lines. However, when one uses response options with spacing, each word in a response option is counted as a separate response option.

Example:

Response options

Good
Kind of ok
Bad

This should result in three response options, but actually results in five: "Good", "Kind", "of", "ok" and "Bad".

Proposed change: in form_multiple_choice in line 58, do not use split() but split('\n'). Next, add a line right behind it to pop the final (empty) response option: option_list.pop(len(option_list)-1). I did a commit on github and send you a pull request.

Cheers!

EDIT: saw you merged it, thanks a bunch!

Sign In or Register to comment.