[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Tue, 17 Aug 2004 14:18:04 -0000
sakharuk Tue Aug 17 10:18:04 2004 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
Bug 1227 (PDF/print output not correct) - actually about </p> tag doing something reasonable - is fixed.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.232 loncom/xml/londefdef.pm:1.233
--- loncom/xml/londefdef.pm:1.232 Mon Aug 16 13:11:10 2004
+++ loncom/xml/londefdef.pm Tue Aug 17 10:18:04 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.232 2004/08/16 17:11:10 sakharuk Exp $
+# $Id: londefdef.pm,v 1.233 2004/08/17 14:18:04 sakharuk 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;
}