From e51cf75889f9635dfda85796c8eb4a36a8e6a36e Mon Sep 17 00:00:00 2001 From: hadaq Date: Wed, 12 Jan 2022 16:45:51 +0100 Subject: [PATCH] add cut in vertical tables in case a register doesn't exist in any board --- xml-db/get.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 .= ""; -- 2.43.0