--- loncom/xml/londefdef.pm 2006/01/25 11:30:14 1.315 +++ loncom/xml/londefdef.pm 2006/01/27 22:30:23 1.316 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.315 2006/01/25 11:30:14 foxr Exp $ +# $Id: londefdef.pm,v 1.316 2006/01/27 22:30:23 foxr Exp $ # # # Copyright Michigan State University Board of Trustees @@ -1980,7 +1980,12 @@ sub start_table { $Apache::londefdef::table[-1]{'width'}=$1*$textwidth/100; } else { $Apache::londefdef::table[-1]{'width'}=$TeXwidth; - } + } + # In the end, however the table width cannot be wider than $textwidth... + + if ($Apache::londefdef::table[-1]{'width'} > $textwidth) { + $Apache::londefdef::table[-1]{'width'} = $textwidth; + } #table's border my $border = &Apache::lonxml::get_param('border',$parstack,$safeeval);