[LON-CAPA-cvs] cvs: loncom /homework rankresponse.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 23 Sep 2003 15:38:26 -0000


sakharuk		Tue Sep 23 11:38:26 2003 EDT

  Modified files:              
    /loncom/homework	rankresponse.pm 
  Log:
  HTML tags are no more in the tex output. Working with answers.
  
  
Index: loncom/homework/rankresponse.pm
diff -u loncom/homework/rankresponse.pm:1.18 loncom/homework/rankresponse.pm:1.19
--- loncom/homework/rankresponse.pm:1.18	Mon Sep 22 16:49:01 2003
+++ loncom/homework/rankresponse.pm	Tue Sep 23 11:38:26 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # rank style response
 #
-# $Id: rankresponse.pm,v 1.18 2003/09/22 20:49:01 albertel Exp $
+# $Id: rankresponse.pm,v 1.19 2003/09/23 15:38:26 sakharuk Exp $
 # Copyright Michigan State University Board of Trustees
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
@@ -245,7 +245,8 @@
 	foreach my $name (@whichfoils) {
 	    my $text=$Apache::response::foilgroup{$name.'.text'};
 	    my $value=shift(@correctorder);
-	    $result.='<br />'.$value.':'.$text;
+	    if ($target eq 'web') {$result.='<br />';} else {$result.=' \strut\\\\\strut ';}
+	    $result.=$value.':'.$text;
 	}
     } else {
 	my $i = 0;