From: hadaq Date: Wed, 12 Jan 2022 15:45:51 +0000 (+0100) Subject: add cut in vertical tables in case a register doesn't exist in any board X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e51cf75889f9635dfda85796c8eb4a36a8e6a36e;p=daqtools.git add cut in vertical tables in case a register doesn't exist in any board --- diff --git a/xml-db/get.pl b/xml-db/get.pl index 3a13ce6..8e3b9d8 100755 --- a/xml-db/get.pl +++ b/xml-db/get.pl @@ -563,10 +563,12 @@ sub generateoutput { for(my $i=0;$i<($obj->{repeat}//1);$i++) { $t .= ""; $t .= "$i" if $obj->{repeat}; + my $v; for my $boards (sort keys %{$tarrhead}) { - $t .= $tarrcont->{$boards}[$i] // ''; + $v = $tarrcont->{$boards}[$i]; + $t .= $v // ''; } - + last unless $v; } } $t .= "";