From: Mike G. v. a. <we...@ma...> - 2005-06-29 02:50:30
|
Log Message: ----------- Corrected how preview_latex_strings are handled when two AnswerHashes are ANDed or ORed. Modified Files: -------------- pg/lib: AnswerHash.pm Revision Data ------------- Index: AnswerHash.pm =================================================================== RCS file: /webwork/cvs/system/pg/lib/AnswerHash.pm,v retrieving revision 1.5 retrieving revision 1.6 diff -Llib/AnswerHash.pm -Llib/AnswerHash.pm -u -r1.5 -r1.6 --- lib/AnswerHash.pm +++ lib/AnswerHash.pm @@ -423,7 +423,8 @@ $out_hash->{correct_ans} = join(" AND ", $self->{correct_ans}, $rh_ans2->{correct_ans} ); $out_hash->{student_ans} = $self->{student_ans}; $out_hash->{type} = join(" AND ", $self->{type}, $rh_ans2->{type} ); - $out_hash->{preview_text_string} = join(" ", $self->{preview_text_string}, $rh_ans2->{preview_text_string} ); + $out_hash->{preview_text_string} = join(" ", $self->{preview_text_string}, $rh_ans2->{preview_text_string} ); + $out_hash->{preview_latex_string} = join("\\quad", $self->{preview_latex_string}, $rh_ans2->{preview_latex_string} ); $out_hash->{original_student_ans} = $self->{original_student_ans}; $out_hash; } |