}
when ("float") { $ret .= sprintf("$cl%.2f",$value);}
when ("integer") { $t = sprintf("%i",$value);
- $t =~ s/(?<=\d)(?=(?:\d\d\d)+\b)/ /g;
+ $t =~ s/(?<=\d)(?=(?:\d\d\d)+\b)/ /g;# 
$ret .= $cl.$t;
}
when ("unsigned") { $t = sprintf("%u",$value);
- $t =~ s/(?<=\d)(?=(?:\d\d\d)+\b)/ /g;
+ $t =~ s/(?<=\d)(?=(?:\d\d\d)+\b)/ /g;# 
$ret .= $cl.$t;
}
when ("signed") { $t = sprintf("%i",$value);
- $t =~ s/(?<=\d)(?=(?:\d\d\d)+\b)/ /g;
+ $t =~ s/(?<=\d)(?=(?:\d\d\d)+\b)/ /g;# 
$ret .= $cl.$t;} #$ret .= sprintf("$cl%d",$value);
when ("binary") { $t = sprintf("%0".$obj->{bits}."b",$value);
- $t =~ s/(?<=\d)(?=(?:\d\d\d\d)+\b)/ /g;
+ $t =~ s/(?<=\d)(?=(?:\d\d\d\d)+\b)/ /g;# 
$ret .= $cl.$t;
}
when ("bitmask") { my $tmp = sprintf("%0".$obj->{bits}."b",$value);
- $tmp =~ s/(?<=\d)(?=(?:\d\d\d\d)+\b)/ /g;
+ $tmp =~ s/(?<=\d)(?=(?:\d\d\d\d)+\b)/ /g;# 
$tmp =~ s/0/\□\;/g;
$tmp =~ s/1/\■\;/g;
- $tmp =~ s/\s/\ \;/g;
+ $tmp =~ s/\s/ /g;# 
$ret .= $cl.$tmp;
}
my $range = $obj->{start}+$obj->{bits}-1;
$range .= "..".$obj->{start} if ($obj->{bits}>1);
$ret .= " ".$obj->{unit} if exists $obj->{unit};
- $ret .= sprintf("<span class=\"tooltip\"><b>$name</b> (Bit $range) - raw: 0x%x<br>$cstr<br>".substr($obj->{description},0,28)."</span></div>",$rawvalue);
+ $ret .= sprintf("<span class=\"tooltip\"><b>$name</b> (Bit $range) - raw: 0x%x<br>$cstr</span></div>",$rawvalue);
} else {
for ($obj->{format}) {