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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 29 Jul 2004 19:40:24 -0000


albertel		Thu Jul 29 15:40:24 2004 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  - it is good to actually run the code before you commit it.
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.115 loncom/homework/optionresponse.pm:1.116
--- loncom/homework/optionresponse.pm:1.115	Tue Jul 20 09:38:47 2004
+++ loncom/homework/optionresponse.pm	Thu Jul 29 15:40:23 2004
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.115 2004/07/20 13:38:47 sakharuk Exp $
+# $Id: optionresponse.pm,v 1.116 2004/07/29 19:40:23 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -456,7 +456,7 @@
 		$texoptionlist.=', ';
 	    }
 	}
-	chop($texoptionlist);
+	$texoptionlist=~s/, $//;
 	if ($TeXlayout ne 'vertical') {$texoptionlist.='.';}
     } else {
 	if ($TeXlayout ne 'vertical') {$texoptionlist='\\item [] \\vskip -5 mm';}