Skip to content
Snippets Groups Projects
Commit 0c384fbd authored by Philip Kaluđerčić's avatar Philip Kaluđerčić :u7121:
Browse files

Only extend a comment if there is a last option

Otherwise an empty line between the question and the options results
in an empty option that appears to the user as a "undefined" option.
parent 406dbc40
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,8 @@ while (<>) {
"correct" => $1 eq "+" ? JSON::true : $1 eq "-" ? JSON::false : JSON::null
);
} elsif (/^.*$/) { # non-empty line
$last_option{"comment"} .= $_;
$last_option{"comment"} .= $_
if %last_option;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment