--- loncom/xml/lontable.pm 2011/04/13 10:08:06 1.17 +++ loncom/xml/lontable.pm 2011/04/13 10:44:26 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Generating TeX tables. # -# $Id: lontable.pm,v 1.17 2011/04/13 10:08:06 foxr Exp $ +# $Id: lontable.pm,v 1.18 2011/04/13 10:44:26 foxr Exp $ # # # Copyright Michigan State University Board of Trustees @@ -57,9 +57,9 @@ package Apache::lontable; use strict; use Apache::lonlatextable; use Apache::lonnet; # for trace logging. -use Data::Dumper; -my $tracing = 1; # Set to 1 to enable log tracing. 2 for local sub tracing. + +my $tracing = 0; # Set to 1 to enable log tracing. 2 for local sub tracing. =pod @@ -533,8 +533,7 @@ sub end_row { # Mostly we need to determine if this row has the maximum # cell count of any row in existence in the table: - &Apache::lonnet::logthis($self->{'part'}); - &Apache::lonnet::logthis(Dumper($self->{'rows'})); + my $row = $self->{'rows'}->{$self->{'part'}}->[-1]; my $cells = $row->{'cells'}; @@ -1106,7 +1105,6 @@ sub render_part { # Do nothing if that part of the table is empty: - &Apache::lonnet::logthis(Dumper($this->{'rows'})); if ($this->{'rows'}->{$part} == undef) { if ($tracing) {&Apache::lonnet::logthis("$part is empty"); } return;