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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 10 Jun 2003 18:39:08 -0000


albertel		Tue Jun 10 14:39:08 2003 EDT

  Modified files:              
    /loncom/homework	edit.pm 
  Log:
  - no longer generate </$tag> as the default in edit mode. BUG#1657
  
  
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.54 loncom/homework/edit.pm:1.55
--- loncom/homework/edit.pm:1.54	Mon Jun  9 18:42:49 2003
+++ loncom/homework/edit.pm	Tue Jun 10 14:39:08 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.54 2003/06/09 22:42:49 albertel Exp $
+# $Id: edit.pm,v 1.55 2003/06/10 18:39:08 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -75,13 +75,7 @@
   my ($target,$token,$description) = @_;
   my $result='';
   if ($target eq 'edit') {
-    my $tag=$token->[1];
-    if (!defined($description)) {
-      $result.="</td></tr><tr><td>&lt;/$tag&gt;</td><td colspan=\"2\">&nbsp;</td>";
-    } else {
-      if ($description ne '') { $result.="</td></tr><tr><td>$description</td><td colspan=\"2\">&nbsp;</td>"; }
-    }
-    $result.="</tr>".&end_table()."\n";
+    $result.="</td></tr>".&end_table()."\n";
   }
   return $result;
 }