<style>
.glyphs tbody th[!colspan] { text-align: right }
.glyphs tbody td { font-family: "$fontmeta->{name}" }
<style>
.glyphs tbody th[!colspan] { text-align: right }
.glyphs tbody td { font-family: "$fontmeta->{name}" }
-
- if ($sameblock and $sameblock ne $block and $block ne 'No_Block') {
- say sprintf '<tbody><tr><th colspan=%d>%s', $pagecols+1, $block;
- undef $sameblock;
- }
-
- if (not $sameblock) {
+ if ($block ne (state $sameblock = $block) and $block ne 'No_Block') {
+ print '<tbody>';
+ printf '<tr><th colspan=%d>%s', $pagecols+1, $block
+ unless $block eq 'No_Block';
+ say '';
my $info = $glyphs->glyph_info($cp);
my ($class, $name, $mnem, $html, $string) = @{$info};
my $np = $class =~ /\bC\S\b/; # noprint if control or invalid
my $info = $glyphs->glyph_info($cp);
my ($class, $name, $mnem, $html, $string) = @{$info};
my $np = $class =~ /\bC\S\b/; # noprint if control or invalid
say sprintf '<td class="%s" title="U+%04X%s">%s',
!$class ? ('l0', $cp, '', '') :
$cover{$cp} ? $np ? 'l2' : 'l5' : $np ? 'Xi' : 'l1',
$cp, !!$name && ": $name",
say sprintf '<td class="%s" title="U+%04X%s">%s',
!$class ? ('l0', $cp, '', '') :
$cover{$cp} ? $np ? 'l2' : 'l5' : $np ? 'Xi' : 'l1',
$cp, !!$name && ": $name",