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

www www@source.lon-capa.org
Fri, 04 Jun 2010 23:03:55 -0000


www		Fri Jun  4 23:03:55 2010 EDT

  Modified files:              
    /loncom/homework	edit.pm 
  Log:
  Bug #5858: Not inserting 
  
      <tag>
      </tag>
  
  with spurious tab characters
  
  
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.125 loncom/homework/edit.pm:1.126
--- loncom/homework/edit.pm:1.125	Sun Jan 31 00:44:21 2010
+++ loncom/homework/edit.pm	Fri Jun  4 23:03:55 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.125 2010/01/31 00:44:21 raeburn Exp $
+# $Id: edit.pm,v 1.126 2010/06/04 23:03:55 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -357,7 +357,7 @@
 	my $depth = scalar(@Apache::lonxml::depthcounter);
 	$depth -- if ($after);
 	my $inset = "\t"x$depth;
-	$result.="\n$inset<$newtag>\n$inset</$newtag>";
+	$result.="\n$inset<$newtag></$newtag>";
     } else {
 	if (defined(&$func)) {
 	    {