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

raeburn raeburn@source.lon-capa.org
Mon, 23 Aug 2010 11:54:31 -0000


raeburn		Mon Aug 23 11:54:31 2010 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  - Don't display bullet if there is only one foil.
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.169 loncom/homework/optionresponse.pm:1.170
--- loncom/homework/optionresponse.pm:1.169	Mon Aug 23 11:33:29 2010
+++ loncom/homework/optionresponse.pm	Mon Aug 23 11:54:31 2010
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.169 2010/08/23 11:33:29 www Exp $
+# $Id: optionresponse.pm,v 1.170 2010/08/23 11:54:31 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -451,7 +451,9 @@
 		    $text='<b>'.$value.':</b> '.$text;
 		}
 	    } else {
-		$text='&#149;'.$text;
+                if (@whichopt > 1) {
+                    $text='&#149;'.$text;
+                }
 	    }
 	    $result.=$text."\n";
 	}
@@ -542,7 +544,9 @@
 	  }
 	  if ($text=~s|<drawoptionlist\s*/>|$optionlist|) {
 	      if ($Apache::lonhomework::type ne 'exam') {
-		  $text='&#149;'.$text;
+                  if (@whichopt > 1) {  
+                      $text='&#149;'.$text;
+                  }
 	      }
 	  } else {
 	      if ($Apache::lonhomework::type ne 'exam') {