]> wagnertech.de Git - mfinanz.git/blobdiff - SL/ReportGenerator.pm
Wenn eine Tabellenzelle gar keinen Inhalt hat, dann zumindest ein   erzwingen...
[mfinanz.git] / SL / ReportGenerator.pm
index 617a27474aa192432bf661e9477cf0ffc40083a6..67d69a9be26d8c41064cf04d42afe66133a0139c 100644 (file)
@@ -311,7 +311,15 @@ sub prepare_html_content {
             'data' => $self->html_format($col->{data}->[$i]),
             'link' => $col->{link}->[$i],
           };
-        };
+        }
+
+        # Force at least a   to be displayed so that browsers
+        # will format the table cell (e.g. borders etc).
+        if (!scalar @{ $col->{CELL_ROWS} }) {
+          push @{ $col->{CELL_ROWS} }, { 'data' => ' ' };
+        } elsif ((1 == scalar @{ $col->{CELL_ROWS} }) && !$col->{CELL_ROWS}->[0]->{data}) {
+          $col->{CELL_ROWS}->[0]->{data} = ' ';
+        }
       }
 
       my $row_data = {