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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 30 Jun 2003 20:41:35 -0000


albertel		Mon Jun 30 16:41:35 2003 EDT

  Modified files:              
    /loncom/homework	edit.pm 
  Log:
  - more <nobr> to make things look prettier
  
  
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.56 loncom/homework/edit.pm:1.57
--- loncom/homework/edit.pm:1.56	Mon Jun 16 11:09:23 2003
+++ loncom/homework/edit.pm	Mon Jun 30 16:41:35 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.56 2003/06/16 15:09:23 www Exp $
+# $Id: edit.pm,v 1.57 2003/06/30 20:41:35 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -518,7 +518,7 @@
   my $arg=$token->[2]{$name};
   $result=$description.'&nbsp;<input name="'.&html_element_name($name).
     '" type="text" value="'.$arg.'" size="'.$size.'" />';
-  return $result;
+  return '<nobr>'.$result.'</nobr>';
 }
 
 sub select_arg {
@@ -540,10 +540,10 @@
 	    $optionlist.="<option $value >$option</option>\n";
 	}
     }
-    $result.=$description.'&nbsp;<select name="'.&html_element_name($name).
-        '">
+    $result.='<nobr>'.$description.'&nbsp;<select name="'.
+	&html_element_name($name).'">
        '.$optionlist.'
-      </select>';
+      </select></nobr>';
     return $result;
 }
 
@@ -577,7 +577,7 @@
     } else {
 	$result.=&text_arg($description,$name,$token,$size);
     }
-    return $result;
+    return '<nobr>'.$result.'</nobr>';
 }
 
 #----------------------------------------------------- image coordinates