From 342342c37716add109551438f85746edb597b215 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 23 Mar 2020 10:38:12 +0100 Subject: [PATCH] fix dividing line if repeated registers exist less than max times --- web/htdocs/layout/blue.css | 4 ++-- xml-db/get.pl | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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") { -- 2.43.0