--- capa/capa51/pProj/capaCgiUtils.c 2000/03/22 21:08:03 1.13 +++ capa/capa51/pProj/capaCgiUtils.c 2000/03/22 21:18:56 1.14 @@ -1518,7 +1518,6 @@ char *class_dir; char *c_owner;char *cla } if(mode == VIEW_PREVIOUS_MODE) { /* VIEW_PREVIOUS_MODE */ /* - if( display_ans ) { if( prob_idx->ans_type == ANSWER_IS_FLOAT ) { a = (double)atof(prob_idx->answer); sprintf(cmp_ans,prob_idx->ans_fmt, a); @@ -1539,6 +1538,7 @@ char *class_dir; char *c_owner;char *cla sprintf(buf,"

Answer: %s
\n",cmp_ans); } */ + if( display_ans ) { c_ans=answers_string(ANSWER_STRING_MODE, prob_idx); sprintf(buf,"

Answer: %s
",c_ans); append_qtext(buf); @@ -1547,6 +1547,7 @@ char *class_dir; char *c_owner;char *cla sprintf(buf,"

Explanation: \n

%s
\n",prob_idx->explain); append_qtext(buf); } + } } else { /* could be TRY_SET_MODE, CHECK_ANSWER_MODE */ if( g_passdue ) { get_response(header.partial_credit[question_idx],entry.answers[question_idx],question_idx,prob_idx);