From: Jan Michel Date: Mon, 23 Mar 2020 09:38:12 +0000 (+0100) Subject: fix dividing line if repeated registers exist less than max times X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=342342c37716add109551438f85746edb597b215;p=daqtools.git fix dividing line if repeated registers exist less than max times --- diff --git a/web/htdocs/layout/blue.css b/web/htdocs/layout/blue.css index b68c9d8..681e593 100644 --- a/web/htdocs/layout/blue.css +++ b/web/htdocs/layout/blue.css @@ -399,8 +399,8 @@ table.queryresult th div, table.queryresult td div { tr.endslice td { - border-bottom: 2px solid !important; - border-bottom-color: inherit !important; + border-top: 2px solid !important; + border-top-color: inherit !important; } diff --git a/xml-db/get.pl b/xml-db/get.pl index 7abfefd..e09b89e 100755 --- a/xml-db/get.pl +++ b/xml-db/get.pl @@ -456,6 +456,7 @@ sub generateoutput { } $t .= ""; my %tarr; + my $line == 0; do { $addr = $obj->{address}+$slice*$stepsize; #### Prepare table header line @@ -469,7 +470,7 @@ sub generateoutput { $sl = sprintf("
%i$name.$slice (0x%04x)
",$slice,$addr) if ($once != 1 && defined $obj->{repeat}); my $endslice = ''; - $endslice = ' class="endslice"' if ($once != 1 && defined $obj->{repeat} && $slice+1 == $obj->{repeat}); + $endslice = ' class="endslice"' if (($once != 1 && defined $obj->{repeat} && $slice == 0) && $line++); $ttmp .= sprintf("
%s$name on 0x%s
raw: 0x%x
%s",$endslice,$b,$b,$data->{$addr}->{$b},$sl); if ($obj->{type} eq "register") {