[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 12 Jul 2004 17:19:13 -0000


sakharuk		Mon Jul 12 13:19:13 2004 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  rt of bug 3103 is fixed. </p> is corrected.
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.225 loncom/xml/londefdef.pm:1.226
--- loncom/xml/londefdef.pm:1.225	Mon Jul 12 12:11:30 2004
+++ loncom/xml/londefdef.pm	Mon Jul 12 13:19:13 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.225 2004/07/12 16:11:30 sakharuk Exp $
+# $Id: londefdef.pm,v 1.226 2004/07/12 17:19:13 sakharuk Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -1133,15 +1133,13 @@
     if ($target eq 'web') {
 	$currentstring .= $token->[2];
     } elsif ($target eq 'tex') {
-	if ($$tagstack[-1] eq 'p') {
-	    my $align=&Apache::lonxml::get_param('align',$parstack,$safeeval,undef,1);
-	    if ($align eq 'center') {		
-		$currentstring .= '\end{center}';
-	    } elsif ($align eq 'right') {
-		$currentstring .= '}}';
-	    } elsif ($align eq 'left') {
-		$currentstring .= '}\hfill}';
-	    }
+	my $align=&Apache::lonxml::get_param('align',$parstack,$safeeval,undef,1);
+	if ($align eq 'center') {		
+	    $currentstring .= '\end{center}';
+	} elsif ($align eq 'right') {
+	    $currentstring .= '}}';
+	} elsif ($align eq 'left') {
+	    $currentstring .= '}\hfill}';
 	}
     }
     return $currentstring;