version 1.17, 2011/04/13 10:08:06
|
version 1.18, 2011/04/13 10:44:26
|
Line 57 package Apache::lontable;
|
Line 57 package Apache::lontable;
|
use strict; |
use strict; |
use Apache::lonlatextable; |
use Apache::lonlatextable; |
use Apache::lonnet; # for trace logging. |
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 |
=pod |
|
|
Line 533 sub end_row {
|
Line 533 sub end_row {
|
# Mostly we need to determine if this row has the maximum |
# Mostly we need to determine if this row has the maximum |
# cell count of any row in existence in the table: |
# 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 $row = $self->{'rows'}->{$self->{'part'}}->[-1]; |
my $cells = $row->{'cells'}; |
my $cells = $row->{'cells'}; |
|
|
Line 1106 sub render_part {
|
Line 1105 sub render_part {
|
|
|
# Do nothing if that part of the table is empty: |
# Do nothing if that part of the table is empty: |
|
|
&Apache::lonnet::logthis(Dumper($this->{'rows'})); |
|
if ($this->{'rows'}->{$part} == undef) { |
if ($this->{'rows'}->{$part} == undef) { |
if ($tracing) {&Apache::lonnet::logthis("$part is empty"); } |
if ($tracing) {&Apache::lonnet::logthis("$part is empty"); } |
return; |
return; |