--- loncom/xml/londefdef.pm 2006/01/09 22:54:47 1.302.2.2 +++ loncom/xml/londefdef.pm 2006/01/13 21:05:57 1.302.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.302.2.2 2006/01/09 22:54:47 albertel Exp $ +# $Id: londefdef.pm,v 1.302.2.3 2006/01/13 21:05:57 albertel Exp $ # # # Copyright Michigan State University Board of Trustees @@ -620,7 +620,7 @@ sub end_center { } elsif ($target eq 'tex') { $currentstring = '\end{center}'; if (&is_inside_of($tagstack, "table")) { - $currentstring .= ¢er_correction(); + #$currentstring .= ¢er_correction(); } } return $currentstring; @@ -1194,7 +1194,7 @@ sub start_p { $closing_string = '\end{center}'; if (&is_inside_of($tagstack, "table")) { $currentstring = ¢er_correction().$currentstring; - $closing_string .= ¢er_correction(); + #$closing_string .= ¢er_correction(); } } elsif ($align eq 'right') { $currentstring.='\makebox['.$env{'form.textwidth'}.']{\hfill\llap{'; @@ -1539,7 +1539,7 @@ sub start_div { $endstring = '\end{center}'; if (&is_inside_of($tagstack, "table")) { $currentstring = ¢er_correction().$currentstring; - $endstring .= ¢er_correction(); + #$endstring .= ¢er_correction(); } } elsif ($align eq 'right') { @@ -2216,7 +2216,7 @@ sub end_table { } $output.=$Apache::londefdef::table[-1]{'content'}[$in][$jn]; if ($Apache::londefdef::table[-1]{'align'}[$in][$jn] eq 'c') { - $output.='\end{center}'.¢er_correction(); + $output.='\end{center}';#.¢er_correction(); } elsif ($Apache::londefdef::table[-1]{'align'}[$in][$jn] eq 'r') { $output.='} '; } @@ -2654,8 +2654,8 @@ sub start_img { undef,1)); if(!$align) { # disabled for now see BUG#4535 - if (0 && &is_inside_of($tagstack, "table")) { - $align = "right"; # Force wraptext use. + if (&is_inside_of($tagstack, "table")) { + $align = "top"; # Force top of image to top of table cell } else { $align = "bottom"; # This is html's default so it's ours too. }