]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
add cut in vertical tables in case a register doesn't exist in any board
authorhadaq <hadaq@hades33.gsi.de>
Wed, 12 Jan 2022 15:45:51 +0000 (16:45 +0100)
committerhadaq <hadaq@hades33.gsi.de>
Wed, 12 Jan 2022 15:45:51 +0000 (16:45 +0100)
xml-db/get.pl

index 3a13ce6c1eff8afcc3b46f9c0b14247ddb989269..8e3b9d88573c630ccad1d78a60a5bc6109fa33fc 100755 (executable)
@@ -563,10 +563,12 @@ sub generateoutput {
       for(my $i=0;$i<($obj->{repeat}//1);$i++) {
         $t .= "<tr><td>";
         $t .= "<td class=\"slice\">$i" if $obj->{repeat};
+        my $v;
         for my $boards (sort keys %{$tarrhead}) {
-          $t .= $tarrcont->{$boards}[$i] // '<td class="nonex">';
+          $v = $tarrcont->{$boards}[$i];
+          $t .= $v // '<td class="nonex">';
           }
+        last unless $v;
         }
       }
     $t .= "</table>";