[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 07 Jun 2003 03:52:39 -0000
albertel Fri Jun 6 23:52:39 2003 EDT
Modified files:
/loncom/homework default_homework.lcpm
Log:
- broke fml response, should be okay now
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.62 loncom/homework/default_homework.lcpm:1.63
--- loncom/homework/default_homework.lcpm:1.62 Fri May 23 03:04:44 2003
+++ loncom/homework/default_homework.lcpm Fri Jun 6 23:52:39 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
#
-# $Id: default_homework.lcpm,v 1.62 2003/05/23 07:04:44 albertel Exp $
+# $Id: default_homework.lcpm,v 1.63 2003/06/07 03:52:39 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -136,7 +136,7 @@
my ($expr,$arg)=@_;
# do these first, because who knows what varname the instructor might have used
# but it probably isn't $CAPARESPONSE_CHECK_LIST_answer
- my $CAPARESPONSE_CHECK_LIST_answer = eval $expr.';return $'.$arg; #'
+ my $CAPARESPONSE_CHECK_LIST_answer = eval $expr.';return $'.$arg; #' stupid emacs
my $GET_ARRAY_ARGS_result;
my @GET_ARRAY_ARGS_list;
if ($CAPARESPONSE_CHECK_LIST_answer =~ /^\s*[\$\@]/) {
@@ -156,6 +156,8 @@
$expr =~ s/\\/\\\\/g;
$expr =~ s/\'/\\\'/g;
my ($result,@list) = &get_array_args($expr,'answer');
+ $expr =~ s/\\\'/\'/g;
+ $expr =~ s/\\\\/\\/g;
my $aresult='';
my $current_answer;
my $answers=join(':',@list);