[LON-CAPA-cvs] cvs: loncom(version_1_2_X) /xml londefdef.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 19 Aug 2004 12:23:17 -0000
albertel Thu Aug 19 08:23:17 2004 EDT
Modified files: (Branch: version_1_2_X)
/loncom/xml londefdef.pm
Log:
- backprot 1.233
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.231 loncom/xml/londefdef.pm:1.231.2.1
--- loncom/xml/londefdef.pm:1.231 Tue Jul 20 11:05:32 2004
+++ loncom/xml/londefdef.pm Thu Aug 19 08:23:17 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.231 2004/07/20 15:05:32 sakharuk Exp $
+# $Id: londefdef.pm,v 1.231.2.1 2004/08/19 12:23:17 albertel Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -1134,13 +1134,15 @@
$currentstring .= $token->[2];
} elsif ($target eq 'tex') {
my $align=&Apache::lonxml::get_param('align',$parstack,$safeeval,undef,1);
- if ($align eq 'center') {
+ if (not defined $align) {
+ $currentstring.='\strut\\\\\strut ';
+ } elsif ($align eq 'center') {
$currentstring .= '\end{center}';
} elsif ($align eq 'right') {
$currentstring .= '}}';
} elsif ($align eq 'left') {
$currentstring .= '}\hfill}';
- }
+ }
}
return $currentstring;
}