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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Wed, 03 Oct 2007 00:24:48 -0000


albertel		Tue Oct  2 20:24:48 2007 EDT

  Modified files:              
    /loncom/homework	edit.pm 
  Log:
  - tighten up the edit display some
  
  
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.111 loncom/homework/edit.pm:1.112
--- loncom/homework/edit.pm:1.111	Mon Sep 10 19:00:05 2007
+++ loncom/homework/edit.pm	Tue Oct  2 20:24:48 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.111 2007/09/10 23:00:05 albertel Exp $
+# $Id: edit.pm,v 1.112 2007/10/03 00:24:48 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -597,7 +597,7 @@
 sub editline {
     my ($tag,$data,$description,$size)=@_;
     $data=&HTML::Entities::encode($data,'<>&"');
-    if ($description) { $description="<br />".$description."<br />"; }
+    if ($description) { $description=$description."<br />"; }
     my $change_code = &element_change_detection();
     my $result = <<"END";
 $description
@@ -619,7 +619,7 @@
     if ($cols > 80) { $cols = 80; }
     if ($cols < $minwidth ) { $cols = $minwidth; }
     if ($rows < $minheight) { $rows = $minheight; }
-    if ($description) { $description="<br />".$description."<br />"; }
+    if ($description) { $description=$description."<br />"; }
     if ($usehtmlarea) {
 	&Apache::lonhtmlcommon::add_htmlareafields('homework_edit_'.
 						   $Apache::lonxml::curdepth);