--- loncom/xml/londefdef.pm 2007/10/15 19:40:53 1.379 +++ loncom/xml/londefdef.pm 2007/12/06 11:22:37 1.380 @@ -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 @@ sub start_div { } 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 @@ sub start_div { $endstring = '\end{center}'; if (&is_inside_of($tagstack, "table")) { $currentstring = ¢er_correction().$currentstring; + $endstring .= ¢er_end_correction(); } } elsif ($align eq 'right') {