]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
fix dividing line if repeated registers exist less than max times
authorJan Michel <j.michel@gsi.de>
Mon, 23 Mar 2020 09:38:12 +0000 (10:38 +0100)
committerJan Michel <j.michel@gsi.de>
Mon, 23 Mar 2020 09:38:12 +0000 (10:38 +0100)
web/htdocs/layout/blue.css
xml-db/get.pl

index b68c9d83a3e80239c65296bac9a11068552b847c..681e5932354240357ab243f25f82ac1ffcef5c6f 100644 (file)
@@ -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;
 
 }
 
index 7abfefde5af98e72e1a35c5088298ad84cb8d8bd..e09b89edbcb3e54a533f9908dd579a38a47c31b1 100755 (executable)
@@ -456,6 +456,7 @@ sub generateoutput {
     }
     $t .= "</thead>";
     my %tarr;
+    my $line == 0;
     do {
       $addr = $obj->{address}+$slice*$stepsize;
       #### Prepare table header line
@@ -469,7 +470,7 @@ sub generateoutput {
         $sl = sprintf("<td class=\"slice\"><div>%i<span class=\"tooltip\"><b>$name.$slice</b> (0x%04x)</span></div>",$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("<tr%s><td><div>%s<span class=\"tooltip\"><b>$name</b> on 0x%s<br>raw: 0x%x</span></div>%s",$endslice,$b,$b,$data->{$addr}->{$b},$sl);
         if ($obj->{type} eq "register") {