[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
foxr
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 06 Dec 2007 11:22:38 -0000
foxr Thu Dec 6 06:22:38 2007 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
BZ 3058 - Added missing post center correction to the div align=center
processing.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.379 loncom/xml/londefdef.pm:1.380
--- loncom/xml/londefdef.pm:1.379 Mon Oct 15 15:40:53 2007
+++ loncom/xml/londefdef.pm Thu Dec 6 06:22:37 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.379 2007/10/15 19:40:53 albertel Exp $
+# $Id: londefdef.pm,v 1.380 2007/12/06 11:22:37 foxr Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -1585,6 +1585,9 @@
}
if ($target eq 'tex') {
# 4 possible alignments: left, right, center, and -missing-.
+ # If inside a table row, we must let the table logic
+ # do the alignment, however.
+ #
my $endstring = '';
@@ -1595,6 +1598,7 @@
$endstring = '\end{center}';
if (&is_inside_of($tagstack, "table")) {
$currentstring = ¢er_correction().$currentstring;
+ $endstring .= ¢er_end_correction();
}
}
elsif ($align eq 'right') {